Skip to content
Interactive

CursorTrail

A ribbon follows the pointer, thinning and fading behind it. Draws on one canvas and only while there is a trail to show.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
childrenReactNode—The area the trail draws over. Stays clickable.
colorstring"#a78bfa"Trail colour.
widthnumber10Width of the trail at the pointer, in pixels.
lifenumber0.5Seconds a point of the trail lives.
classNamestring""On the area wrapper.