A 3D product floats inside a stylised elemental world chosen from its benefit — water, fire, ice, cloud, earth or light. A custom environmental shader and an instanced particle system surround the product and tint its lighting to match the element.
import ProductElementalScene from '@crazygl/hero-product-elemental-scene';
export default function Hero() {
return (
<ProductElementalScene
element="water"
model="https://crazygl.com/samples/camera.glb"
heading="Drawn from the elements."
/>
);
}element (water / fire / ice / cloud / earth / light), intensity, atmosphereSpeed, particleDensity, accentColor (overrides the element's signature hue everywhere).model (GLB/GLTF), productScale, productYaw / productPitch (static three-quarter angle), floatAmp, positionX / positionY, parallaxStrength, plus material overrides (useGlbMaterials, productTint, productColor, productMetalness, productRoughness).showFloor, floorColor (a soft non-reflective surface that melts into the atmosphere).environmentImage (equirectangular HDRI for IBL), envIntensity, exposure, keyLightIntensity.npm install @crazygl/hero-product-elemental-sceneThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ProductInElementalScene from '@crazygl/hero-product-elemental-scene';
export default function Landing() {
return (
<ProductInElementalScene />
);
}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 ProductInElementalScene from '@crazygl/hero-product-elemental-scene';
export default function Page() {
return (
<section>
<ProductInElementalScene
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}