A luminous chromatic cloud hero built with GLSL. Responds to scroll and pointer with refracted color light.
import PrismCloud from '@crazygl/hero-prism-cloud';
export default function Page() {
return (
<PrismCloud
hueA="#7b5cff"
hueB="#32d6ff"
hueC="#ff7ac6"
intensity={1}
speed={0.5}
/>
);
}hueA/hueB/hueC are the three colour wells; analogous hues give a single-mood cloud, complements a more chromatic refraction. backgroundColor sits behind.intensity (overall luminance) and caustic (etched light-through-glass streaks).speed (drift; keep slow) and grain (film grain).npm install @crazygl/hero-prism-cloudThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import PrismCloud from '@crazygl/hero-prism-cloud';
export default function Landing() {
return (
<PrismCloud />
);
}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 PrismCloud from '@crazygl/hero-prism-cloud';
export default function Page() {
return (
<section>
<PrismCloud
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}