A glassy frozen pane fills the frame. Tap or drag to spread fresh cracks; old fractures slowly heal.
import IceSurface from '@crazygl/hero-ice-surface';
export default function Page() {
return (
<IceSurface
iceColor="#cfe6f7"
crackScale={12}
healSpeed={1}
/>
);
}iceColor, deepColor, crackColor, frostDensity, crackScale (number of crystal grains across the frame), healSpeed, spread (how far each strike fractures).headingFontFamily.npm install @crazygl/hero-ice-surfaceThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import IceSurface from '@crazygl/hero-ice-surface';
export default function Landing() {
return (
<IceSurface />
);
}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 IceSurface from '@crazygl/hero-ice-surface';
export default function Page() {
return (
<section>
<IceSurface
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}