All effects
CursorClient component

Image Trail

Pointer movement leaves a short-lived sequence of images with rotation and inertia.

Draw a path across the surface

Effect style

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

Image Trail props
PropType / defaultDescription
imagesstring[]Image URLs cycled in pointer order. At most eight transient images remain mounted.
thresholdnumber = 70Minimum travel in CSS pixels before the next image appears.
childrenReactNodeForeground 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.