Horizontal accordion of cards — the active card stretches to reveal an inner story, others compress to vertical labels. Auto-cycles on idle.
import CardExpandReveal from '@crazygl/hero-card-expand-reveal';
export default function Page() {
return (
<CardExpandReveal
card1Label="Design"
card1Body="Brand identity from logo to ledger."
card1Color="#ff5c8a"
autoCycleSec={3.2}
/>
);
}cardNLabel, cardNBody, and onCardNClick (URL or function).autoCycleSec, the idle dwell time per card before advancing.cardNColor, plus labelColor, bodyColor, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-card-expand-revealThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import CardExpandReveal from '@crazygl/hero-card-expand-reveal';
export default function Landing() {
return (
<CardExpandReveal />
);
}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 CardExpandReveal from '@crazygl/hero-card-expand-reveal';
export default function Page() {
return (
<section>
<CardExpandReveal
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}