Browse components
Drift Wall
A tilted wall of image columns drifting up and down at different speeds, pausing on hover.
Installation
npx shadcn@latest add @glint-ui/drift-wallFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/drift-wall.json
Usage
import { DriftWall } from "@/components/ui/drift-wall";
<div className="relative h-[32rem]">
<DriftWall images={photos} columns={7} speed={40} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| images | ReactNode | — | Array of image URLs. |
| columns | number | 7 | Number of image columns. |
| speed | number | 40 | Drift speed in px per second. |
| tilt | number | 16 | Wall tilt in degrees. |
| gap | number | 16 | Px between tiles. |
| pauseOnHover | boolean | true | Freeze the wall and spotlight a tile on hover. |
| fade | boolean | true | Fade the wall into the background at the edges. |
| className | string | — | Extra classes for the root element. |