Skip to content

    Browse components

    Flock Trail

    A flock of boids that separates, aligns and swirls around the cursor, leaving luminous trails.

    Flock Trail

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/flock-trail

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/flock-trail.json

    Usage

    import { FlockTrail } from "@/components/ui/flock-trail";
    
    <div className="relative h-96">
      <FlockTrail count={160} />
    </div>

    Props

    PropTypeDefaultDescription
    countnumber160Number of boids.
    colorstring"#c6ff3d"Boid color.
    accentstring"#22d3ee"Color of the fastest boids.
    maxSpeednumber5Top speed in px per frame.
    sizenumber7Boid length in px.
    trailsbooleantrueDraw faint motion trails behind each boid.
    classNamestring—Extra classes for the root element.