Your logo becomes a thick translucent liquid-glass badge that refracts a user-supplied photograph through its biconvex body. Per-channel IORs paint a real rainbow seam at the rim, the interior reads as frosted glass, and a 4-light Blinn-Phong studio rig sells the volume. Falls back to a rotating gradient backdrop when no image is supplied.
import LiquidGlassBadgeLogo from '@crazygl/hero-liquid-glass-badge-logo';
export default function Page() {
return (
<LiquidGlassBadgeLogo
logo="/logo.svg"
backgroundImage="/hero-photo.jpg"
refraction={1.35}
dispersion={1.1}
/>
);
}logoScale, logoCenterX/logoCenterY place it.backgroundImage (JPG/PNG/AVIF/WebP) is what refracts through the body. Leave empty for the procedural gradient + particles fallback (bgWarm/bgCool/bgDeep, bgPulse, particles), or blend with proceduralAmount.bevelDepth (thickness) and edgeSoftness.refraction, dispersion (rainbow-seam width), fresnel, specGloss, absorption, frost, plus tintHex and rimHex.pointerTilt parallax and idle ambientSway.npm install @crazygl/hero-liquid-glass-badge-logoThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import LiquidGlassBadgeLogo from '@crazygl/hero-liquid-glass-badge-logo';
export default function Landing() {
return (
<LiquidGlassBadgeLogo />
);
}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 LiquidGlassBadgeLogo from '@crazygl/hero-liquid-glass-badge-logo';
export default function Page() {
return (
<section>
<LiquidGlassBadgeLogo
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}