Dog-ear
Markup where the component goes, CSS in your stylesheet. No JavaScript.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/checkbox-dog-earAbout 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