Skip to content

    Browse components

    Photo Wake

    Photos pop in along the cursor path, then drift, shrink and fade away.

    Photo Wake

    Move your cursor around

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/photo-wake

    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/photo-wake.json

    Usage

    import { PhotoWake } from "@/components/ui/photo-wake";
    
    <PhotoWake images={["/a.jpg", "/b.jpg", "/c.jpg"]} className="h-96 w-full" />

    Props

    PropTypeDefaultDescription
    imagesstring[]—Image URLs, spawned in order.
    childrenReactNode—Content shown above the trail area.
    thresholdnumber60Px of cursor travel between spawns.
    sizenumber150Image width in px.
    durationnumber1100Lifetime of each image in ms.
    rotationnumber10Max random tilt in degrees.
    classNamestring—Extra classes for the root element.