Heading splits into two halves that slide apart to reveal a secondary line between them — the curtain-pull pattern.
import TextSplitReveal from '@crazygl/hero-textsplitreveal';
export default function Hero() {
return (
<TextSplitReveal
topLine="DESIGN"
bottomLine="STUDIO"
between="EST. 2026"
splitGap={80}
duration={2.4}
/>
);
}topLine, bottomLine, and the between text revealed in the gap.splitGap (how far the lines travel), duration (seconds), loopAnimation (ping-pong forever vs. open once and hold).textColor, betweenColor, fontSize, headingFontFamily (Google Font), headingFontWeight.transparentBackground toggle and bgColor.npm install @crazygl/hero-textsplitrevealThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TextSplitReveal from '@crazygl/hero-textsplitreveal';
export default function Landing() {
return (
<TextSplitReveal />
);
}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 TextSplitReveal from '@crazygl/hero-textsplitreveal';
export default function Page() {
return (
<section>
<TextSplitReveal
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}