grootstudio

Cursor Trail

Component 72

About

A cursor trail effect that spawns and animates a stream of images interpolated along the mouse movement path.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Cursor Trail to your project and fits it to your theme.

Code

How Cursor Trail is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { CursorTrail } from "@/components/ui/cursor-trail";

export default function CursorTrailPreview() {
  return (
    <div className="relative w-full h-[400px] flex items-center justify-center overflow-hidden bg-background text-foreground">
      <p className="z-10 text-xl font-base tracking-tight pointer-events-none">
        Wiggle your mouse around.
      </p>
      <CursorTrail />
    </div>
  );
}

More by grootstudio

View all
  • Logo Marquee

    Logo Marquee

    359
  • Gradient Text Fill

    Gradient Text Fill

    46
  • Blurred Marquee

    Blurred Marquee

    27
  • Text Frame

    Text Frame

    5