Heartbeat

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-heartbeat

About this component

On check, a tiny SVG ECG heartbeat line draws across the box using stroke-dashoffset, then fades while the check mark reveals. Dark background with a soft white trace. Medical/vital signs aesthetic.

Triggers

  • Click
  • State change

Techniques

  • Keyframes

Difficulty

Advanced

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
Ink BlotGet code
Laser DrawGet code
Morph LineGet code