Liquid-glass panels in WebGL — half-sphere bevel, biconvex refraction (entry + exit + thickness), edge-weighted blur mix, multi-light Blinn-Phong specular, Fresnel rim, drop shadow. Drop in any background image and it gets bent through the glass.
import GlassPanels from '@crazygl/hero-glass-panels';
export default function Page() {
return (
<GlassPanels
backgroundImage="/photos/nature.avif"
refraction={1.21}
chromatic={0.29}
blur={0}
/>
);
}draggable, pointerTilt.backgroundImage, blur (frosted body).cornerRadius, bevelDepth.refraction, chromatic, fresnel, gloss, edgeHighlight, tint, brightness, saturation.shadow, shadowSpread, shadowOffsetY.npm install @crazygl/hero-glass-panelsThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import GlassPanels from '@crazygl/hero-glass-panels';
export default function Landing() {
return (
<GlassPanels />
);
}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 GlassPanels from '@crazygl/hero-glass-panels';
export default function Page() {
return (
<section>
<GlassPanels
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}