About
Drift soft blobs of color that merge and pull apart like liquid.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Metaballs to your project and fits it to your theme.
Code
How Metaballs is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import Metaballs from "@/components/ui/honest-metaballs";
interface MetaballsSettings {
colors: string[];
backgroundColor: string;
count: number;
size: number;
spread: number;
softness: number;
speed: number;
followPointer: boolean;
}
const defaults: MetaballsSettings = {
colors: ["#6366f1", "#a855f7", "#ec4899", "#38bdf8"],
backgroundColor: "#0c0d12",
count: 9,
size: 1,
spread: 0.8,
softness: 0,
speed: 1,
followPointer: true,
};
export default function MetaballsDemo() {
const settings = defaults;
return (
<div className="flex min-h-[420px] w-full items-center justify-center p-6">
<div className="h-80 w-full max-w-xl overflow-hidden rounded-xl">
<Metaballs className="size-full" {...settings} />
</div>
</div>
);
}
















