Each word rides its own sine wave with a per-letter phase offset — the line reads like a banner caught in a slow current.
import AnimatedFlowText from '@crazygl/hero-animated-flow-text';
export default function Page() {
return (
<AnimatedFlowText
heading="the current carries the type"
amplitude={18}
speed={0.9}
textColor="#ffffff"
/>
);
}heading, optional subheading.amplitude (wave height in px), wavelength (chars per wave), speed, rotateMax (per-letter tilt in degrees).textColor, subColor, fontSize, headingFontFamily (Google font), headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-animated-flow-textThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import AnimatedFlowText from '@crazygl/hero-animated-flow-text';
export default function Landing() {
return (
<AnimatedFlowText />
);
}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 AnimatedFlowText from '@crazygl/hero-animated-flow-text';
export default function Page() {
return (
<section>
<AnimatedFlowText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}