Your headline printed on a slow-waving cloth flag. The fabric ripples in 3D with soft cinematic lighting; the cursor pushes the cloth like a gust of wind.
import WavingFlagHeadline from '@crazygl/hero-waving-flag-headline';
export default function Hero() {
return (
<WavingFlagHeadline
heading="CHAMPIONS NEVER REST"
fabricColor="#c8362e"
attachmentEdge="left"
/>
);
}contentMode (text printed on the cloth, or an flagImage logo), heading, subheading, and a ctaLabel/onCTAClick.flagWidth, flagHeight, attachmentEdge (left pole / top banner / free-floating).fabricColor, textColor, materialMode (fabric / shiny / reflective) with per-mode roughness, sheen, clearcoat, HDRI and reflection knobs.windStrength, windSpeed, pointerWindStrength.keyLightIntensity, fillLightIntensity, ambientIntensity.bgTop/bgBottom gradient or transparentBackground.headingFontFamily, headingFontWeight.npm install @crazygl/hero-waving-flag-headlineThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import WavingFlagHeadline from '@crazygl/hero-waving-flag-headline';
export default function Landing() {
return (
<WavingFlagHeadline />
);
}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 WavingFlagHeadline from '@crazygl/hero-waving-flag-headline';
export default function Page() {
return (
<section>
<WavingFlagHeadline
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}