Multi-line heading where each line wipes in via a CSS clip-path from top, bottom, left, right, or centre — with a configurable stagger between lines.
import PathTextReveal from '@crazygl/hero-path-text-reveal';
export default function Hero() {
return (
<PathTextReveal
text={`Transform your content
into premium narrative
with a single line.`}
direction="bottom"
staggerDelay={0.15}
/>
);
}text (one line per row).trigger (load / loop), direction (top / bottom / left / right / center), duration, staggerDelay, loopInterval.textColor, textAlign, fontSize, lineHeight, letterSpacing, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-path-text-revealThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import PathTextReveal from '@crazygl/hero-path-text-reveal';
export default function Landing() {
return (
<PathTextReveal />
);
}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 PathTextReveal from '@crazygl/hero-path-text-reveal';
export default function Page() {
return (
<section>
<PathTextReveal
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}