Acid
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initSliderAcid(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-acidAbout this component
An etch-depth slider on a brushed steel bar: the fill is where the acid has bitten in, sunken, matte and pitted, darker the deeper it goes. At the thumb, the drop of acid, the etch front fizzes with bubbles, thicker and faster as the depth climbs.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- State change
- Ambient
- Fill
Techniques4
- Radial gradient
- Keyframes
- CSS variables
- Stagger
Accessibility
Keyboard and screen readers
A native range input named Etch depth with micrometres as its value text; the bar is aria-hidden.
Reduced motion
No bubbles rise.
Use it in anything you build, commercial and client work included. Licence