Envelope

You're invited
Friday, 8 pm at the Loft
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-envelope

About 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

More cards

See all
Rare Find
No. 001 of 250
Holo FoilGet code
Negative space
Move to reveal, click to flood
Ink RevealGet code
Day & NightMove across to tilt
LenticularGet code
You found it
Code: MOVIN-25
Peel me
Drag the corner
PeelGet code