Bulbs
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initSliderBulbs(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-bulbsAbout this component
A string of twelve lights sagging above the track: each step lights the next bulb, which flickers on before it settles, and the lit run follows the fill below; stepping back, they fade out.
- Dependencies
- None
- Difficulty
- Beginner
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- State change
- Glow
- Fill
Techniques4
- SVG
- Keyframes
- CSS transition
- Radial gradient
Accessibility
Keyboard and screen readers
A native range input named Lights with value text like "7 of 12 lit"; the lights are aria-hidden.
Reduced motion
The bulbs light without flickering.
Use it in anything you build, commercial and client work included. Licence