Your headline cast in oil-slick iridescence. Real thin-film interference shifts the surface through cyan → green → gold → pink → violet → blue as you move the pointer, just like a soap bubble or a petrol puddle catching streetlight. Three.js TextGeometry + a MeshPhysicalMaterial iridescence layer, lit by a procedural HDR studio with concentrated softboxes.
import IridescentGradientTypography from '@crazygl/hero-iridescent-gradient-typography';
export default function Page() {
return (
<IridescentGradientTypography
heading={"OIL\nSLICK"}
subheading="Move your cursor — the colours travel like a soap bubble in sunlight."
iridescenceIOR={1.7}
headingFontFamily="Audiowide"
/>
);
}heading (newlines split lines), subheading, ctaLabel/onCTAClick/ctaTextColor/ctaBgColor.extrudeDepth, bevelSize, letterSpacing.iridescenceIOR, iridescenceMin/Max (nm film thickness), baseColor, metalness, roughness.pointerParallax, idleSpinSpeed.bgTop, bgBottom, vignetteStrength, starfieldDensity.headingFontFamily (Google fonts fetched as TTF), headingFontWeight.npm install @crazygl/hero-iridescent-gradient-typographyThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import IridescentGradientTypography from '@crazygl/hero-iridescent-gradient-typography';
export default function Landing() {
return (
<IridescentGradientTypography />
);
}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 IridescentGradientTypography from '@crazygl/hero-iridescent-gradient-typography';
export default function Page() {
return (
<section>
<IridescentGradientTypography
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}