Morph Line

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-morph-line

About this component

A short horizontal line morphs into a check mark using SVG path d attribute animation, extending first, then bending into the check V-shape. Unchecking reverses the morph back to a line.

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
NeonGet code
Orbit SnapGet code
Pixel FillGet code
Pressure DipGet code