Envelope
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/card-envelopeAbout this component
An envelope with a seal. On hover the flap swings open in 3D and, once past edge-on, drops behind the letter through a delayed z-index; then an invitation card slides up out of the pocket. Leaving reverses it in order. Pure CSS.
Triggers
- Hover
- Focus
- 3D
- Card
Techniques
- 3D transform
- Perspective
- clip-path
- CSS transition
- Transition delay stagger
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The envelope is focusable and keyboard focus opens it like hover.
Reduced motion
It opens without movement.
Use it in anything you build, commercial and client work included. Licence