A long block of copy that fades word-by-word as the visitor scrolls — early words go dim, current words pop, future words sit faded.
import ScrollTextFade from '@crazygl/hero-scroll-text-fade';
export default function Hero() {
return (
<ScrollTextFade
copy="We design and build premium product experiences that move with intent."
windowSize={18}
brightColor="#ffffff"
/>
);
}copy, the paragraph that reveals as you scroll.dimColor / brightColor (the colours interpolated per word), windowSize (width of the active reveal band as a % of the text), softness (edge falloff of the band).scrollStart / scrollEnd, the scroll-progress range (0% = element entering viewport, 100% = leaving) over which the reveal plays out.fontSize, headingFontFamily, headingFontWeight, lineHeight.transparentBackground, bgColor.npm install @crazygl/hero-scroll-text-fadeThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ScrollTextFade from '@crazygl/hero-scroll-text-fade';
export default function Landing() {
return (
<ScrollTextFade />
);
}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 ScrollTextFade from '@crazygl/hero-scroll-text-fade';
export default function Page() {
return (
<section>
<ScrollTextFade
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}