CursorClient component
Image Trail
Pointer movement leaves a short-lived sequence of images with rotation and inertia.
Draw a path across the surface
Leave an impression
Draw a path through the selected work
Usage
tsx
import { ImageTrail } from "@/components/effects/image-trail"
<ImageTrail images={["/work-01.webp", "/work-02.webp"]}>
<h2>Selected work</h2>
</ImageTrail>API reference
| Prop | Type / default | Description |
|---|---|---|
| images | string[] | Image URLs cycled in pointer order. At most eight transient images remain mounted. |
| threshold | number = 70 | Minimum travel in CSS pixels before the next image appears. |
| children | ReactNode | Foreground content. Coarse pointers get a static image strip; reduced motion disables the trail. |
Use className to adjust layout and styling. New effects respect system reduced-motion preferences and the preview motion setting.