Thousands of tiny semi-transparent dust motes drift in depth inside a soft beam of light. Curl-noise keeps them floating naturally; depth fog reads volumetric; the pointer stirs a slow vortex that swirls particles away and leaves a fading wake, like moving a hand through mist.
import VolumetricParticleFog from '@crazygl/hero-volumetric-particle-fog';
export default function Hero() {
return (
<VolumetricParticleFog
heading="Through the mist."
particleCount={6000}
depthFog={1.6}
/>
);
}contentType (heading / two-columns / custom) with heading, subheading, column1, column2 or content.particleCount, particleColor, backgroundColor, depthFog (Beer-Lambert recession), edgeDensity (push dust to the edges, keep the centre calm).driftSpeed (curl-noise flow), noiseScale (eddy size), particleSize, opacity.currentStrength and currentRadius (how hard / how wide the vortex wake reaches).centerCalm (radial fade behind the heading). Backdrop — transparent.npm install @crazygl/hero-volumetric-particle-fogThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import SoftVolumetricParticleFog from '@crazygl/hero-volumetric-particle-fog';
export default function Landing() {
return (
<SoftVolumetricParticleFog />
);
}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 SoftVolumetricParticleFog from '@crazygl/hero-volumetric-particle-fog';
export default function Page() {
return (
<section>
<SoftVolumetricParticleFog
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}