Image trail

Cards that follow your pointer, tilt in from depth, float up and fade away. They are reused from a small pool, so fast swipes stay smooth.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

ImageTrail3D props

PropTypeDefaultDescription
itemsReactNode[]What the cards show, cycled in order.
sizenumber110Card width and height in px.
distancenumber70Pointer travel in px before the next card appears.
poolnumber14Size of the reuse pool.
hintReactNode"Move your pointer here"Shown in the middle until the first move.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks