Glitch Error

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-glitch-error

About this component

On failed validation the input briefly glitches (a CSS invert/brightness flicker plus translateX jitter keyframe over 500ms), then snaps to a bright border. Unsettling, memorable error feedback.

Triggers

  • Focus
  • State change
  • Border

Techniques

  • Keyframes
  • Filter

Difficulty

Advanced

Accessibility

Reduced motion

Glitch animation is skipped under prefers-reduced-motion; border turns bright immediately. aria-invalid is set on error.

Use it in anything you build, commercial and client work included. Licence

More inputs

See all
Gradient RingGet code
Gradient SpinGet code
HUD BracketsGet code