Dhileep Kumar GM

Warp Gradient

Backgrounds 2

About

: A customizable animated "lava lamp" or "metaball" gradient background component for React. It creates a fluid, warping effect using HTML canvas, CSS filters, and animated blobs. Ideal for hero sections and dynamic web backgrounds.

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

Code

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

Usage.tsx

import WarpGradient from "@/components/ui/warp-gradient";

const settings = {
  blobCount: 5,
  speed: 1.2,
  blur: 80,
  contrast: 40,
};

export default function DemoOne(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    // This div replaces the Tailwind classes
    <div className="app-container">
      {/* The WarpGradient component */}
      <WarpGradient
        color1="#ff1b6b"
        color2="#45caff"
        color3="#ff1b6b"
        blobCount={s.blobCount}
        speed={s.speed}
        blur={s.blur}
        contrast={s.contrast}
        backgroundColor="#000000"
      />

      {/* Hero Content Container */}
      <div className="content-container">
        {/* You can add your content (like text or buttons) back in here */}
      </div>
    </div>
  );
}

More by Dhileep Kumar GM

View all
  • Aether Flow Hero

    Aether Flow Hero

    1.9K
  • Woven Light Hero

    Woven Light Hero

    1.6K
  • AnomalousMatterHero

    AnomalousMatterHero

    1.5K
  • PulseFit hero

    PulseFit hero

    947
  • Mountain Scene

    Mountain Scene

    864
  • HolographicCard

    HolographicCard

    819
  • 3D Animation

    3D Animation

    781
  • Cybernetic Bento Grid

    Cybernetic Bento Grid

    557

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    850
  • Background snippets

    Background snippets

    229
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    232
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    558
  • Gradient Backgrounds

    Gradient Backgrounds

    28
  • LivingOrigami bg

    LivingOrigami bg

    146
  • Background Components

    Background Components

    20
  • Gradient Blur Bg

    Gradient Blur Bg

    72