A series of statements that swap one at a time as the user scrolls — the heading is pinned at viewport-centre and the next statement crossfades in as you scroll through the hero's 200vh of vertical space.
import ScrollSyncedText from '@crazygl/hero-scrollsyncedtext';
export default function Page() {
return (
<ScrollSyncedText
statements={`We design intentional.\nWe ship ruthlessly.\nWe stay curious.`}
fontSize={96}
/>
);
}statements (one line per slide).textColor, fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-scrollsyncedtextThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ScrollSyncedText from '@crazygl/hero-scrollsyncedtext';
export default function Landing() {
return (
<ScrollSyncedText />
);
}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 ScrollSyncedText from '@crazygl/hero-scrollsyncedtext';
export default function Page() {
return (
<section>
<ScrollSyncedText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}