Bounce

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-bounce

About this component

A checkbox that plays a spring-bounce keyframe animation on the box itself when toggled: compresses then overshoots on check, lightly expands then settles on uncheck. Fill and border color transition simultaneously.

Triggers

  • Click
  • State change

Techniques

  • Transform only
  • Keyframes

Difficulty

Beginner

Accessibility

Keyboard and screen readers

Hidden native input.

Reduced motion

Keyframe animations skipped under prefers-reduced-motion via data attribute selector.

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

More checkboxes

See all
ChargingGet code
ConfettiGet code