Dog-ear

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-dog-ear

About this component

Checking turns the box into a sheet of paper and folds its top corner down in 3D, the way you dog-ear a page you have read, showing the paper's darker underside. Pure CSS.

Triggers

  • Click
  • State change
  • 3D
  • Draw

Techniques

  • 3D transform
  • preserve-3d
  • Perspective
  • clip-path
  • stroke-dashoffset

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native checkbox inside a <label>, so "Mark as read" is its name. The page is aria-hidden.

Reduced motion

The corner folds without animating.

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

More checkboxes

See all
FingerprintGet code
KeycapGet code
Select AllGet code
SmileGet code