Picket
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initSliderPicket(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-picketAbout this component
A painted-fence slider: sixteen bare wooden pickets stand along the rail and the thumb is the brush. Each picket it passes is painted from the ground up in one stroke, a few with a drip running from under the point, and drawing it back wipes the paint off again.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- State change
- Delay stagger
- Fill
Techniques4
- clip-path
- CSS transition
- Keyframes
- CSS variables
Accessibility
Keyboard and screen readers
A native range input named Fence painted with the pickets done as its value text; the fence is aria-hidden.
Reduced motion
The paint and drips appear at once.
Use it in anything you build, commercial and client work included. Licence