OPUS/UI

Navigation

Image Trail

Move across the area and a trail of images unfurls behind the pointer. Pooled DOM nodes and the Web Animations API — no re-renders.

pointerwaapi2 files · 102 locdeps: clsx, tailwind-merge

MOVE · FAST

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/image-trail.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs image-trail

Usage

import { ImageTrail } from "@/components/opus/effects/image-trail";

<ImageTrail images={["/a.jpg", "/b.jpg"]} className="h-96" />

API

PropTypeDefaultDescription
imagesstring[]—Image URLs, cycled.
thresholdnumber80Pointer distance between drops (px).
widthnumber160Image width (px).
lifenumber900ms each image lives.
maxnumber12Pool size.

Command palette