A crisp clip-path wipe that pulls the curtain away with a bright leading edge and a soft trailing glow, in five directions.
New arrival
Aero One
Wireless over-ear, 40 h battery
npx shadcn@latest add https://hyperblur.dev/r/curtain-clip-wipe.jsonWorks in any React project set up with the shadcn CLI. The file lands in components/hyperblur/curtain-clip-wipe.tsx.
import { CurtainClipWipe } from "@/components/hyperblur/curtain-clip-wipe"
<CurtainClipWipe direction="diagonal" trigger="view"><ProductCard /></CurtainClipWipe>| 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 | 900 | Wipe time in milliseconds. |
| color | string | "#171717" | Curtain color. |
| accent | string | "#2f7bff" | Color of the leading edge and its glow. |
| direction | "left" | "right" | "up" | "down" | "diagonal" | "right" | Direction the edge travels. |
| 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. |