Desktop optimized

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

Go to home

Wind Trail

An interactive mouse trail that maps spawned elements to an ambient wind physics engine, drifting items smoothly across the screen like autumn leaves.

Last Modified:Aug 17, 2026

Install

CLI

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

Or install a specific demo variant:

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

Or install a specific demo variant:

wind-trail-images-demo
$pnpm dlx shadcn@latest add https://ui.satisium.com/r/wind-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.
distancenumber200Distance the pointer must move (in pixels) before spawning a new item.
durationnumber2600The total lifespan of a spawned item in milliseconds.
maxItemsnumber10Maximum items on screen before forcing the oldest to fade out.
itemSizenumber90The base pixel size of the image cards.
windXnumber100Base horizontal wind speed in pixels per second.
windYnumber-30Base vertical wind speed in pixels per second.
classNamestringundefinedStandard Tailwind classes for the fixed wrapper.
itemClassNamestring""Standard Tailwind classes applied to the individual image wrappers.