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>
);
}




