Liquid

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-liquid

About this component

A silver liquid rises from the bottom of the box using translateY on a fill layer inside overflow:hidden. A faint curved surface ripple rides the top of the liquid. The check springs in after the fill completes.

Triggers

  • Click
  • State change
  • Fill
  • Spring

Techniques

  • Transform only

Difficulty

Beginner

Moves on

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

Accessibility

Keyboard and screen readers

Hidden native <input type="checkbox">.

Reduced motion

Fill transition skipped under prefers-reduced-motion.

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

More checkboxes

See all
Morph LineGet code
NeonGet code
Orbit SnapGet code
Pixel FillGet code