Ali Imam

Bubble Animation

Heroes 62

About

The component includes props for dimensions, bubble count, colors, and styling, while maintaining the original blur effect and animated gradient background.

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

Code

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

Usage.tsx

import { BubbleAnimation } from "@/components/ui/bubble-animation";

export default function DemoOne() {
  return (
    <div className="relative flex h-[650px] w-full flex-col items-center justify-center overflow-hidden">
      <BubbleAnimation
        width={800}
        height={600}
        totalBubbles={20}
        colors={["#018ddc", "#f12a00", "#ec6546", "#b0c90d"]}
        className="absolute rounded-md w-full h-full"
      />
       <span className="pointer-events-none z-10 text-center text-7xl leading-none font-semibold tracking-tighter whitespace-pre-wrap text-white">
        Bubble Animation
      </span>
    </div>
  )
}

More by Ali Imam

View all
  • Liquid Glass Button

    Liquid Glass Button

    7.2K
  • Shader Animation

    Shader Animation

    3.9K
  • WebGL Shader

    WebGL Shader

    2.7K
  • Shiny Button

    Shiny Button

    2.4K
  • Shader Lines

    Shader Lines

    2.4K
  • GLSL Hills

    GLSL Hills

    2.2K
  • Canvas

    Canvas

    1.8K
  • Gallery

    Gallery

    1.6K

More in Heroes

View all
  • Agency Hero Section

    Agency Hero Section

    1.1K
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.7K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1.1K
  • Hero

    Hero

    1.4K
  • Hero Section 01

    Hero Section 01

    56
  • Split Hero With Image Cards

    Split Hero With Image Cards

    467
  • Facts Hero

    Facts Hero

    6