honestui

Metaballs

Shaders

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

Dependencies

More by honestui

View all
  • Chromatic Text Reveal

    Chromatic Text Reveal

    30
  • Schedule Builder

    Schedule Builder

  • Audit Log

    Audit Log

  • Secret Row

    Secret Row

  • Undoable Action

    Undoable Action

  • OTP Field

    OTP Field

  • Audio Orb

    Audio Orb

  • AI Glow Border

    AI Glow Border

More in Shaders

View all
  • Glass Fold

    Glass Fold

    588
  • Shader Animation

    Shader Animation

    3.9K
  • Chroma Sense Hero

    Chroma Sense Hero

    22
  • LightSpeed

    LightSpeed

    253
  • Illos Knowledge Sources

    Illos Knowledge Sources

    74
  • Shader Lines

    Shader Lines

    2.5K
  • Molten Pillars

    Molten Pillars

    18
  • Wave

    Wave

    730