Raymarched lattice of transparent glass cubes drifting in 3D space. The cursor orbits the camera, and chromatic dispersion paints rainbow rims along the hits.
import GlassCubeMaze from '@crazygl/hero-glass-cube-maze';
export default function Page() {
return (
<GlassCubeMaze
backgroundImage="/your-scene.jpg"
chromatic={0.25}
spacing={2.2}
/>
);
}backgroundImage (refracted through every cube), or skyTop / skyBottom for a procedural sky when empty.tint, rimColor, cubeSize, spacing, cornerRound, refraction, chromatic (dispersion), fresnel, rotateSpeed, randomness (0 = strict grid → 1 = scattered cloud).centerX, centerY, orbitStrength (pointer swing), fov.embedContent3D rasterises the heading onto a billboard plane refracted by the cubes.npm install @crazygl/hero-glass-cube-mazeThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import GlassCubeMaze from '@crazygl/hero-glass-cube-maze';
export default function Landing() {
return (
<GlassCubeMaze />
);
}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 GlassCubeMaze from '@crazygl/hero-glass-cube-maze';
export default function Page() {
return (
<section>
<GlassCubeMaze
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}