Curtain

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-curtain

About this component

Two gray half-panels slide apart like theater curtains on check, revealing the check mark behind them. Unchecking slides the panels back in to conceal it.

Triggers

  • Click
  • State change

Techniques

  • Transform only

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Hidden native input.

Reduced motion

Transitions removed under prefers-reduced-motion.

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

More checkboxes

See all
Fire FillGet code
FlipGet code
Ghost ThroughGet code