Five product screens drift weightlessly in a dark space. The main screen sits in focus at the front; four secondary feature screens float at varying depths behind it, with soft shadows and depth fog selling the void.
import HeroZeroGravityUI from '@crazygl/hero-zero-gravity-ui';
export default function Hero() {
return (
<HeroZeroGravityUI
heading="Built to flow."
screenshot1="/screens/dashboard.png"
screenshot2="/screens/builder.png"
/>
);
}screenshot1 (main/front) … screenshot5, plus mainEmissive, secondaryEmissive, mainScale, secondaryScale, secondarySpread.groupOffsetX, groupOffsetY.parallaxStrength (cursor orbit), breathingStrength.fogDensity, fogColor, bloomColor, bloomStrength, ambientParticles, bgEdge, bgCenter, transparentBackground.npm install @crazygl/hero-zero-gravity-uiThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ProductUIInZeroGravity from '@crazygl/hero-zero-gravity-ui';
export default function Landing() {
return (
<ProductUIInZeroGravity />
);
}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 ProductUIInZeroGravity from '@crazygl/hero-zero-gravity-ui';
export default function Page() {
return (
<section>
<ProductUIInZeroGravity
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}