A floating mercury sphere ray-marched in real time, sampling a real environment image (or a procedural studio HDRI) for genuine mirror-like reflections. Drop in a photo to see it bend across the surface. Three layouts: orb centered or content beside it.
import LiquidMetalOrb from '@crazygl/hero-liquid-metal-orb';
export default function Page() {
return (
<LiquidMetalOrb
layout="content-left"
environmentImage="https://crazygl.com/samples/hdri1.avif"
metallic={1}
orbSize={0.95}
/>
);
}environmentImage (equirectangular 2:1 reflection map; empty = procedural studio HDRI), envRotation, plus envTopColor / envBottomColor for the procedural fallback.metallic (1 = pure mirror, 0 = matte), metalTint, fresnelStrength, rimColor, sunColor.orbSize, deformAmount (noise boil amplitude), boilSpeed, stretch (pointer pull).backgroundImage or a bgColor1/2/3 procedural mesh gradient; transparent to composite the orb over the page.centered, content-left, or content-right.npm install @crazygl/hero-liquid-metal-orbThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import LiquidMetalOrb from '@crazygl/hero-liquid-metal-orb';
export default function Landing() {
return (
<LiquidMetalOrb />
);
}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 LiquidMetalOrb from '@crazygl/hero-liquid-metal-orb';
export default function Page() {
return (
<section>
<LiquidMetalOrb
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}