Skip to content

    Browse components

    Column Drift

    A tilted wall of image columns drifting up and down at different speeds, pausing on hover.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/column-drift

    First 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

    PropTypeDefaultDescription
    imagesReactNode—Array of image URLs.
    columnsnumber7Number of image columns.
    speednumber40Drift speed in px per second.
    tiltnumber16Wall tilt in degrees.
    gapnumber16Px between tiles.
    pauseOnHoverbooleantrueFreeze the wall and spotlight a tile on hover.
    fadebooleantrueFade the wall into the background at the edges.
    classNamestring—Extra classes for the root element.