Iridescent soap bubbles drift upward, each refracting the bg and showing a thin-film rainbow rim. The cursor wobbles nearby bubbles.
import BubbleUniverse from '@crazygl/hero-bubble-universe';
export default function Page() {
return (
<BubbleUniverse
heading="Bubbles."
subheading="Iridescent soap films drift upward, each one refracting the world behind it."
backgroundImage="https://crazygl.com/samples/nature2.avif"
bubbleCount={14}
filmStrength={1}
/>
);
}contentType (heading / two-columns / custom), heading, subheading, or custom column1/column2/content nodes.backgroundImage (refracted through every bubble; cover-fit), or skyTop/skyBottom for the procedural gradient fallback.bubbleCount, filmStrength (iridescence), rimGlow, refraction, speed (drift), cursorPush.headingFontFamily.npm install @crazygl/hero-bubble-universeThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import BubbleUniverse from '@crazygl/hero-bubble-universe';
export default function Landing() {
return (
<BubbleUniverse />
);
}The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';
import BubbleUniverse from '@crazygl/hero-bubble-universe';
export default function Page() {
return (
<section>
<BubbleUniverse
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}