Each letter scales, rotates and brightens as it passes the scroll midpoint — an editorial mid-line emphasis effect.
import ScrollTextFx from '@crazygl/hero-scrolltextfx';
export default function Hero() {
return (
<ScrollTextFx
heading="letters earn their weight"
peakColor="#ffffff"
baseColor="#5a5f6c"
/>
);
}heading.windowSize (active band width %), peakScale, peakRotate.scrollStart, scrollEnd (scroll progress mapped to the sweep).baseColor, peakColor, fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-scrolltextfxThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ScrollTextFX from '@crazygl/hero-scrolltextfx';
export default function Landing() {
return (
<ScrollTextFX />
);
}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 ScrollTextFX from '@crazygl/hero-scrolltextfx';
export default function Page() {
return (
<section>
<ScrollTextFX
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}