Skip to content
Image Effects

ImageTrail

Moving the pointer or a finger drops pictures along the way. Each pops up, holds, and fades.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
imagesstring[]—Picture addresses. They are decoration, so keep nothing important only here.
childrenReactNode—The area the trail shows over.
gapnumber90Pixels the pointer moves before the next picture appears.
sizenumber150Width of each picture in pixels.
lifenumber1Seconds a picture lives.
classNamestring"h-80"Set the size here.