Saw
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initSliderSaw(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-sawAbout this component
A cut-length slider on a wooden plank: the thumb is a spinning circular saw blade and the fill is the kerf it leaves down the grain. Pushing it forward speeds the blade up and throws sawdust off the back of it.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- State change
- Loop
- Fill
Techniques4
- Conic gradient
- Keyframes
- CSS variables
- Filter
Accessibility
Keyboard and screen readers
A native range input named Cut length with centimetres as its value text; the plank is aria-hidden.
Reduced motion
The blade stands still and no dust flies.
Use it in anything you build, commercial and client work included. Licence