Spark Trail

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-spark-trail

About this component

On check, 8 short white spark-streaks shoot outward in all directions and fade quickly, like an electric discharge. More energy-focused and rapid than confetti: pure white, no color variation.

Triggers

  • Click
  • State change

Techniques

  • Keyframes
  • CSS variables

Difficulty

Intermediate

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Keyboard and screen readers

Hidden native input.

Reduced motion

Animations removed under prefers-reduced-motion.

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

More checkboxes

See all
StampGet code
Tilt HoverGet code
Add-onGet code