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








