Components/GretTech/Blinds Reveal

Blinds Reveal

One image turns into another through 3D slats that flip in sequence, like venetian blinds. Hover, scroll or click to flip.

v0

Installation

Full Setup guide

Install the component automatically via Shadcn CLI.

npx shadcn@latest add https://www.grettech.com/api/registry/blinds-reveal

Props

PropTypeDefaultDescription
front*
{ src: string; alt: string }-Image shown first.
back*
{ src: string; alt: string }-Image the slats reveal.
slats
number10Number of slats.
orientation
"horizontal" | "vertical""horizontal"Horizontal slats flip up and down; vertical ones flip sideways.
trigger
"hover" | "inView" | "click""hover"What flips the slats. Hover also flips on keyboard focus.
revealed
boolean-Controlled state: true shows the back image.
onRevealedChange
(revealed: boolean) => void-Called when the state changes.
duration
number800Milliseconds each slat takes to turn.
stagger
number55Milliseconds between neighbouring slats starting.
aspectRatio
string"16 / 10"CSS aspect ratio of the frame.
className
string-Extra classes for the frame.
...props
React.HTMLAttributes<HTMLDivElement>-Any other attributes, passed to the frame.