A cursor trail that spawns and cycles through a configurable image array as you move the pointer, with fade-blur transitions and an optional magnetic repulsion effect.
"use client"; import { ImageTrail } from "@/components/ui/image-trail"; export default function Default() { return ( <div className="flex min-h-[520px] w-full items-center justify-center bg-black p-6"> <ImageTrail className="grid h-[460px] w-full max-w-3xl place-items-center rounded-xl border border-white/10 bg-black" spacing={40} duration={1000} imageSize={120} cornerRadius={8} fadeInDuration={0.3} fadeOutDuration={0.5} fadeInBlur={0} fadeOutBlur={6} > <p className="pointer-events-none text-sm text-white/40">Move cursor here</p> </ImageTrail> </div> ); }