Desktop optimized

Please maximize your browser window or use a larger screen to explore the component library.

Go to home

Depth Trail

A cinematic mouse trail leveraging Z-depth mapping, focal blur, parallax shifting, and atmospheric lighting to simulate a rich, dense 3D space.

Last Modified:Aug 17, 2026

Install

CLI

depth-trail
$pnpm dlx shadcn@latest add https://ui.satisium.com/r/depth-trail.json

Or install a specific demo variant:

depth-trail-avatars-demo
$pnpm dlx shadcn@latest add https://ui.satisium.com/r/depth-trail-avatars-demo.json

Or install a specific demo variant:

depth-trail-images-demo
$pnpm dlx shadcn@latest add https://ui.satisium.com/r/depth-trail-images-demo.json

Manual

1. Add Source Code

Note: This component utilizes pure DOM manipulation and RequestAnimationFrame logic. No external libraries are required.

Props

PropTypeDefaultDescription
imageUrlsstring[][]Array of image URLs to randomly spawn.
distancenumber40Distance the pointer must move (in pixels) before spawning a new item.
durationnumber2000The total lifespan of a spawned item in milliseconds.
maxItemsnumber20Maximum items on screen before forcing the oldest to fade out.
itemSizenumber90The base pixel size of the image cards.
rotationRangenumber25Maximum random rotation (in degrees) applied to the cards.
classNamestringundefinedStandard Tailwind classes for the fixed wrapper.
itemClassNamestring""Standard Tailwind classes applied to the individual image wrappers.