Desktop optimized

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

Go to home

Velocity Trail

An intense, kinetic mouse trail that calculates real-time pointer speed to deform, stretch, and squeeze items along their trajectory.

Last Modified:Aug 17, 2026

Install

CLI

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

Or install a specific demo variant:

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

Or install a specific demo variant:

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

Manual

1. Add Source Code

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

Performance Architecture

The Velocity Trail operates by constantly tracking the pointer's pixel-per-millisecond displacement. By locking the rotation to the mouse trajectory curve and applying decoupled scaleX and scaleY transforms proportional to the pointer's speed, it creates a highly convincing "squash and stretch" kinetic effect entirely on the GPU.

Props

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