Envelope

The flap swings open in 3D and the letter rises out. Click, tap, Enter or Space.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Envelope3D props

PropTypeDefaultDescription
childrenReactNodeContent of the letter inside the envelope.
widthnumber300Width in px.
openbooleanControlled open state.
onOpenChange(open: boolean) => voidCalled with the new open state whenever it changes.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks