A bold headline printed on a moonlit pool. Stacked Gerstner waves and pointer-driven Gaussian wakes bend the letters in real time, and the CTA fires a circular wavefront across the surface. Reflective night water with soft moon highlights and a low cinematic camera.
import WaterRippleHeadline from '@crazygl/hero-water-ripple-headline';
export default function Hero() {
return (
<WaterRippleHeadline
heading="Still as moonlight."
subheading="Touch the surface. The letters bend."
ctaLabel="Make a wave"
onCTAClick="/get-started"
/>
);
}onCTAClick accepts a URL string OR a function — same prop name, type-detected at runtime.
heading (printed on the water), subheading, ctaLabel, onCTAClick.waveAmplitude, waveSpeed, surfaceDetail (fine moon-sparkle chop), surfaceColor, waterTint, specularIntensity, moonlightColor.textColor, textOpacity, textScale.rippleStrength, rippleDecay.skyTop, skyBottom, horizonY, starDensity, starBrightness.cameraTilt, surfaceY, surfaceZ.headingFontFamily, headingFontWeight.npm install @crazygl/hero-water-ripple-headlineThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import WaterRippleHeadline from '@crazygl/hero-water-ripple-headline';
export default function Landing() {
return (
<WaterRippleHeadline />
);
}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 WaterRippleHeadline from '@crazygl/hero-water-ripple-headline';
export default function Page() {
return (
<section>
<WaterRippleHeadline
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}