Browse components
Photo Wake
Photos pop in along the cursor path, then drift, shrink and fade away.
Photo Wake
Move your cursor around
Installation
npx shadcn@latest add @glint-ui/photo-wakeFirst 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
| Prop | Type | Default | Description |
|---|---|---|---|
| images | string[] | — | Image URLs, spawned in order. |
| children | ReactNode | — | Content shown above the trail area. |
| threshold | number | 60 | Px of cursor travel between spawns. |
| size | number | 150 | Image width in px. |
| duration | number | 1100 | Lifetime of each image in ms. |
| rotation | number | 10 | Max random tilt in degrees. |
| className | string | — | Extra classes for the root element. |