Arc
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initSliderArc(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-arcAbout this component
A voltage slider whose fill is a live electric arc between the electrode at the start of the track and the thumb: it crackles and jumps, growing brighter, thicker and wilder as the voltage rises, and dies to a spark gap at zero.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- State change
- Glow
- Continuous
Techniques4
- SVG
- Interval
- Filter
- CSS variables
Accessibility
Keyboard and screen readers
A native range input named Voltage with the value in kilovolts; the arc is aria-hidden.
Reduced motion
The arc is drawn once and does not crackle.
Use it in anything you build, commercial and client work included. Licence