Slackline
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initSliderSlackline(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-slacklineAbout this component
A distance slider on a slackline strung between two anchors: the track is the line and the thumb is the walker's weight on it. The line sags into a V under the thumb, deepest mid-span and taut near the ends, and bounces on a spring when you move before it settles.
- Dependencies
- None
- Difficulty
- Advanced
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- State change
- Spring
- Fill
Techniques4
- Spring
- requestAnimationFrame
- SVG
- CSS variables
Accessibility
Keyboard and screen readers
A native range input named Distance along the line with metres as its value text; the line is aria-hidden.
Reduced motion
The line sits at its sag without bouncing.
Use it in anything you build, commercial and client work included. Licence