Each item shows a default heading; on hover the heading scrolls up and a secondary line scrolls in from below — list-of-services interaction.
import TextHoverReveal from '@crazygl/hero-text-hover-reveal';
export default function Hero() {
return (
<TextHoverReveal
items={
"Brand identity | from logo to ledger | /work/brand\n" +
"Motion design | shipped without crunch | /work/motion"
}
/>
);
}items: one row per line, label | reveal | url (the URL is optional; external links open in a new tab). idleLoop cycles the reveal automatically when nothing is hovered.textColor, revealColor, fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-text-hover-revealThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TextHoverReveal from '@crazygl/hero-text-hover-reveal';
export default function Landing() {
return (
<TextHoverReveal />
);
}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 TextHoverReveal from '@crazygl/hero-text-hover-reveal';
export default function Page() {
return (
<section>
<TextHoverReveal
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}