A newsletter signup that arrives as post. Press the wax seal on a kraft envelope and it cracks, the flap lifts, a folded card slides out and opens towards you while a paper harbour town pops up out of the fold, layer by layer, above a working email form. Real hinged paper in CSS 3D: drag for parallax, Look closer moves into the street, Close plays it all backwards. Validation, sending and success states, onSubscribe callback. React only, honours reduced motion.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sealed Popup Letter to your project and fits it to your theme.
Code
How Sealed Popup Letter is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client"
import SealedPopupLetter from "@/components/ui/sealed-popup-letter"
export default function Demo() {
return (
// w-full matters: 21st centres demos in a flex wrapper, and a flex item at
// width:auto shrinks to its contents.
<div className="relative w-full">
<SealedPopupLetter
height="min(100svh, 900px)"
onSubscribe={() => new Promise((resolve) => setTimeout(resolve, 900))}
/>
</div>
)
}
















