CursorTrail

Animated trail effect that tracks cursor movement

Props

PropTypeDefaultDescription
colorAcolor#00aaffColor of fresh trails
colorBcolor#ff00aaColor trails transition to as they fade
stopsgradient-stops-Multi-stop gradient colors (overrides Color A / Color B when set)
radiusrange0.5Base radius of the trail stroke
lengthrange0.5How long the trail persists (in seconds)
shrinkrange1How much the stroke tapers as it fades out (0 = no taper, 1 = full taper)
softnessrange0Edge softness of the trail (0 = crisp paint edge, 1 = very soft)
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"linearColor space for color interpolation

Usage

vue
<Shader>
  <CursorTrail
    :radius="0.5"
  />
</Shader>