Browse components
Column Drift
A tilted wall of image columns drifting up and down at different speeds, pausing on hover.
Installation
npx shadcn@latest add @glint-ui/column-driftFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/column-drift.json
Usage
import { ColumnDrift } from "@/components/ui/column-drift";
<div className="relative h-[32rem]">
<ColumnDrift 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. |