Glitch
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initSliderGlitch(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-glitchAbout this component
A datamosh slider on a dark scanline screen: a magenta-to-cyan bar made of thin slices, with a white block for a thumb. While you drag, the slices tear sideways, the colour channels split and dead pixels spark, then everything snaps back into register.
Triggers
- State change
- Fill
- Neon
- Keyframe
Techniques
- CSS variables
- Keyframes
- Gradient
- Stagger
Difficulty
Advanced
Accessibility
Keyboard and screen readers
A native range input named "Signal" by aria-label, so arrow keys, Home and End work; the screen is aria-hidden. :focus-visible on the input outlines the block.
Reduced motion
Nothing tears or blinks; the bar simply follows the value.
Use it in anything you build, commercial and client work included. Licence