Stacked rows of large text drift left/right at offset speeds as the visitor scrolls — like a marquee orchestrated by the page itself.
import ScrollFlowTextFx from '@crazygl/hero-scrollflowtextfx';
export default function Hero() {
return (
<ScrollFlowTextFx
row1="design · build · ship · "
row2="motion · type · code · "
row3="studio · crazygl · "
/>
);
}row1, row2, row3 (each row's repeating text).baseDrift (constant idle crawl), scrollDrift (scroll-driven shift strength).scrollStart, scrollEnd (the % progress range the effect maps to).row1Color, row2Color, row3Color, fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-scrollflowtextfxThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ScrollFlowTextFX from '@crazygl/hero-scrollflowtextfx';
export default function Landing() {
return (
<ScrollFlowTextFX />
);
}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 ScrollFlowTextFX from '@crazygl/hero-scrollflowtextfx';
export default function Page() {
return (
<section>
<ScrollFlowTextFX
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}