CursorsProNew

Image Trail

A chain of images follows the cursor, popping in and fading out. Great for portfolios and galleries.

Customize

tileColor
tileAccentColor
tileHighlightColor

Based on Image Trail (MIT license) · Terms of use

Props

12 properties
PropertyTypeDefaultDescription
thresholdnumber100Pixels the mouse must travel before the next image appears.
intensitynumber0.3How strongly an image catches up with the cursor.
repeatChildrennumber3How many times the set of images repeats in the trail.
zIndexDirection'new-on-top' | 'old-on-top'"new-on-top"Whether new images stack on top or below.
baseZIndexnumber0Base z-index for all images.
keyframesDOMKeyframesDefinition—Animation of each image, e.g. fade in and out.
keyframesOptionsAnimationOptions—Duration and timing for the keyframes.
asElementType"div"HTML tag of the container.
childrenReactNode—ImageTrailItem elements with images inside.
tileColorstring"#ffffff"Main colour of the trail tiles. Tiles read it as var(--trail-c1).
tileAccentColorstring"#9a9a9a"Second tile colour, var(--trail-c2).
tileHighlightColorstring"#d4d4d4"Light tile colour for highlights, var(--trail-c3).

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all