Two doors swing open from the center in 3D with shading that deepens as they turn, while the room behind brightens into view.
The Lantern Room
Table for two · Sat, Nov 14 · 8:00 pm
Booking #LR-2081npx shadcn@latest add https://hyperblur.dev/r/curtain-doors.jsonWorks in any React project set up with the shadcn CLI. The file lands in components/hyperblur/curtain-doors.tsx.
import { CurtainDoors } from "@/components/hyperblur/curtain-doors"
<CurtainDoors trigger="view"><EventTicket /></CurtainDoors>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | built-in scene | Content revealed behind the curtain. |
| open | boolean | Controlled open state. True means the curtain is open and the content visible. Pair with onOpenChange. | |
| defaultOpen | boolean | false | Initial open state when uncontrolled. |
| onOpenChange | (open: boolean) => void | Called whenever the curtain opens or closes, including trigger, closeAfter and loop changes. | |
| trigger | "mount" | "view" | "manual" | "mount" | When the curtain opens by itself: after mount, when it scrolls into view, or never (drive it with open). |
| duration | number | 1100 | Swing time in milliseconds. |
| color | string | "#1c1c1f" | Door color. |
| accent | string | "#2f7bff" | Color of the handles and the light in the seam. |
| direction | "horizontal" | "vertical" | "horizontal" | Left and right doors, or top and bottom doors. |
| angle | number | 96 | How far each door swings, in degrees. |
| replay | string | number | Change this value to snap the curtain shut and play the reveal again. | |
| closeAfter | number | Milliseconds to stay open before closing again. Leave unset to stay open. | |
| loop | boolean | false | Reopen after closing, for a continuous open, hold, close cycle. Use with closeAfter. |