Components
A cursor trail effect that spawns and animates a sequence of images along your mouse's path.
Loading preview...
import { CursorTrail } from "@/components/ui/cursor-trail";
export default function CursorTrailDemo() {
return (
<div className="relative flex h-[500px] w-full items-center justify-center overflow-hidden rounded-xl border bg-background">
<p className="select-none text-foreground/80">
Wiggle your mouse around.
</p>
<CursorTrail />
</div>
);
}