About
Spawns a trail of images that follow the cursor across a scoped area, with multiple appearance styles.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Image Trail to your project and fits it to your theme.
Code
How Image Trail is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import ImageTrail from "@/components/ui/sona-image-trail"
const images = [
"https://cdn.21st.dev/assets/mirror/83/83f4147bd4f6f07b0bb1841a0b9c16d9d31adcef8221d0dd902f66a30e58f98b.jpg",
"https://cdn.21st.dev/assets/mirror/96/9601bd492fd14ccea9adfe401135794adbf682f3354b3cdfed099fc20d6b3510.jpg",
"https://cdn.21st.dev/assets/mirror/8e/8e40938bc161b549bbc15b05c1ff28a4f504ed0b686c5dc6bd896023c83942b6.jpg",
"https://cdn.21st.dev/assets/mirror/36/36d1b324cc3b9269cab8eb29e840ffd2c11a3ee759cae929bf216081dc31e495.jpg",
"https://cdn.21st.dev/assets/mirror/69/69733a3a9146790be9260366f11b08ed50bde0a826d7c3651f476d41dc17131a.jpg",
"https://cdn.21st.dev/assets/mirror/e2/e2517e3d3725b869bf8157393bf1151ff3d09ca9eb7b821b716b8915e071edec.jpg",
];
export default function ImageTrailExample() {
return (
<ImageTrail
images={images}
className="h-full min-h-[50vh] w-full flex items-center justify-center"
>
<div className="flex h-full w-full items-center justify-center">
<h3 className="pointer-events-none text-center font-semibold text-2xl text-foreground">
Move your cursor here
</h3>
</div>
</ImageTrail>
);
}








