Components / effect

Image Trail

v1.0.0 · premium

Leaves a trail of images behind the pointer that pop in, hold, then drift up and fade.

Image Trail demo

Implementation

Leaves a trail of images behind the pointer that pop in, hold, then drift up and fade.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function CursorTrail({ children, images, distance = 110, size = 180, className }: {
  children: ReactNode;
  /** Image URLs. They cycle in order. */

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · Leaves a trail of images behind the pointer that pop in, hold, then drift up and fade.

Frequently asked questions

Can I use my own images?

Yes. Pass any list of image URLs. They cycle in order, are decorative, and are hidden from assistive technology.

How many images are on screen at once?

At most eight. Each removes itself when its animation ends, and reduced motion shows no trail at all.