klyv-ui

Boids Flock

Component

About

An animated flock of simple triangular agents drawn on a canvas, following classic boids separation/alignment/cohesion rules and reacting to the pointer, used as ambient motion in a hero, empty state, or loading background.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Boids Flock to your project and fits it to your theme.

Code

How Boids Flock is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { BoidsFlock } from "@/components/ui/boids-flock";

export default function BoidsFlockScatterDemo() {
  return (
    <div className="relative h-screen w-full bg-background text-foreground">
      <BoidsFlock pointer="flee" className="absolute inset-0" />
    </div>
  );
}

More by klyv-ui

View all
  • Gantt Chart

    Gantt Chart

    50
  • Klyv Animated Beam

    Klyv Animated Beam

    41
  • Pareto Chart

    Pareto Chart

    36
  • Shader Canvas

    Shader Canvas

    32
  • Sunburst Chart

    Sunburst Chart

    20
  • Morphing Text

    Morphing Text

    20
  • Gravity Tags

    Gravity Tags

    16
  • Klyv Border Beam

    Klyv Border Beam

    10