Ferro
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initSliderFerro(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/slider-ferroAbout this component
A field-strength slider whose thumb is a drop of ferrofluid on a magnet: its spikes stand taller as the field rises and tremble on their own clocks, and the glossy liquid trailing behind it is the fill.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- State change
- Morph
- Spring
Techniques4
- clip-path
- CSS variables
- Keyframes
- Radial gradient
Accessibility
Keyboard and screen readers
A native range input named Field strength with the value in millitesla; the drop is aria-hidden.
Reduced motion
The spikes change height without trembling or springing.
Use it in anything you build, commercial and client work included. Licence