Confetti

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-confetti

About this component

On check, 8 grayscale confetti pieces (alternating rectangles and circles) burst radially outward from the center in all directions, rotating and fading as they travel. Playful and celebratory.

Triggers

  • Click
  • State change

Techniques

  • CSS variables
  • Keyframes

Difficulty

Advanced

Moves on

Its code uses these curves. 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
Crystal BreakGet code
CurtainGet code
Fire FillGet code