Lace
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initSliderLace(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-laceAbout this component
A stepped slider on a strip of leather with two rows of eyelets: every step the lace crosses over to the next pair, drawing itself through the eyelets in an X, and the thumb is the aglet at the end of the lace. Stepping back unlaces the last cross.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- State change
- Draw
- Click
Techniques4
- SVG
- stroke-dashoffset
- CSS transition
- Keyframes
Accessibility
Keyboard and screen readers
A native range input named Eyelets laced with the crosses done as its value text; the leather is aria-hidden.
Reduced motion
The crosses appear at once.
Use it in anything you build, commercial and client work included. Licence