Heading wiped in from a single direction via a hard clip-path mask, with a small per-letter delay — the foundational reveal everyone needs.
import TextReveal from '@crazygl/hero-text-reveal';
export default function Hero() {
return (
<TextReveal
heading="Reveal what matters."
direction="bottom"
trigger="load"
duration={900}
/>
);
}trigger (load / reveal / click), direction (bottom / top / left / right), duration, perWordStagger, loopAfter (load only).textColor, subColor, fontSize, headingFontFamily, headingFontWeight.heading, subheading.transparentBackground, bgColor.npm install @crazygl/hero-text-revealThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TextReveal from '@crazygl/hero-text-reveal';
export default function Landing() {
return (
<TextReveal />
);
}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 TextReveal from '@crazygl/hero-text-reveal';
export default function Page() {
return (
<section>
<TextReveal
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}