A heading revealed by a directional wipe — one of eight angles — with an optional layered effect: a blur-in, a colour morph from start to end, or a chromatic-aberration split that resolves as the reveal completes.
import RevealTextScroll from '@crazygl/hero-reveal-text-scroll';
export default function Hero() {
return (
<RevealTextScroll
heading="Reveal text on scroll."
direction="Bottom → Top"
effect="Blur"
edgePercent={18}
/>
);
}heading, subheading, ctaLabel, onCTAClick.direction (8 angles), edgePercent (soft-band width), scrollStart / scrollEnd (scroll window), autoplaySeconds (auto mode).effect (None / Blur / Color Morph / Chromatic Aberration) plus blurPx, morphFromColor / morphToColor, caMaxPx.textColor, textAlign, fontSize, lineHeight, letterSpacing, headingFontFamily, headingFontWeight.transparentBackground, bgColor, vignetteStrength.npm install @crazygl/hero-reveal-text-scrollThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import RevealTextScroll from '@crazygl/hero-reveal-text-scroll';
export default function Landing() {
return (
<RevealTextScroll />
);
}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 RevealTextScroll from '@crazygl/hero-reveal-text-scroll';
export default function Page() {
return (
<section>
<RevealTextScroll
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}