A headline whose transform is driven by scroll progress through the viewport — pick an animation flavour (scale / rotate / slide / blur / combo), tune the scroll window, and the headline does the rest.
import OnScrollTypography from '@crazygl/hero-on-scroll-typography';
export default function Hero() {
return (
<OnScrollTypography
heading="kinetic"
animation="combo"
scrollStart={15}
scrollEnd={70}
/>
);
}animation (scale / rotate / slide / blur / fade / combo), with scaleAmount, rotateAmount, slideAmount, blurAmount.scrollStart / scrollEnd (percent of the hero's viewport pass over which the effect plays) and autoplaySeconds (ping-pong fallback when interactivity is off / reduced motion).textColor, subColor, fontSize, headingFontFamily, headingFontWeight.bgColor or transparentBackground.npm install @crazygl/hero-on-scroll-typographyThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import OnScrollTypography from '@crazygl/hero-on-scroll-typography';
export default function Landing() {
return (
<OnScrollTypography />
);
}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 OnScrollTypography from '@crazygl/hero-on-scroll-typography';
export default function Page() {
return (
<section>
<OnScrollTypography
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}