Rivet
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initSliderRivet(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-rivetAbout this component
A steel strap riveted along the track in ten steps: ahead of the thumb the plate shows empty holes, each step forward hammers the next rivet home with a flash and a jolt, and stepping back pops rivets out again.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- State change
- Click
- Fill
Techniques4
- Keyframes
- Radial gradient
- State machine
- CSS transition
Accessibility
Keyboard and screen readers
A native range input named Rivets fastened with value text like "6 of 10"; the strap is aria-hidden.
Reduced motion
Rivets appear and vanish without hammering or popping.
Use it in anything you build, commercial and client work included. Licence