nexus-ui

Image Trail

Galleries 84

About

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.

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

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

Dependencies

More by nexus-ui

View all
  • Circular Carousel

    Circular Carousel

    1.2K
  • Images Badge

    Images Badge

    965
  • Chat Messages

    Chat Messages

    302
  • Shooting Stars Grid

    Shooting Stars Grid

    156
  • Infinite Moving Cards

    Infinite Moving Cards

    148
  • Cinematic Logo Cloud

    Cinematic Logo Cloud

    145
  • Logo Clouds

    Logo Clouds

    102
  • Interactive Starfield Hero

    Interactive Starfield Hero

    86

More in Galleries

View all
  • Thumbnail image viewer

    Thumbnail image viewer

    43
  • Animated Gallery

    Animated Gallery

    1.4K
  • File Upload

    File Upload

    18
  • Editorial Collage Hero

    Editorial Collage Hero

    430
  • 3D Parallax Unfurling Gallery

    3D Parallax Unfurling Gallery

    981
  • Image Gallery

    Image Gallery

    123
  • Tilted Grid Hero

    Tilted Grid Hero

    1.5K
  • Hero Section 6

    Hero Section 6

    882