Perspective-tilted wireframe plane warped by metallic spheres. The grid bends around each ball like a rubber sheet, and the cursor adds a fourth distortion well.
import GravityGrid from '@crazygl/hero-gravity-grid';
export default function Hero() {
return (
<GravityGrid
heading="Spacetime."
wellStrength={1.6}
lineColor="#5cf2ff"
wellColor="#ff6cd1"
/>
);
}heading + subheading, two columns, or a custom node.cellCount (density), tilt (camera angle), wellStrength (well depth), cursorStrength (pointer well), lineWidth.bgTop/bgBottom, lineColor, fillColor, wellColor (glow), sphereColor (metal).npm install @crazygl/hero-gravity-gridThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import GravityGrid from '@crazygl/hero-gravity-grid';
export default function Landing() {
return (
<GravityGrid />
);
}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 GravityGrid from '@crazygl/hero-gravity-grid';
export default function Page() {
return (
<section>
<GravityGrid
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}