A horizontally-scrolling strip of image cards at different depths. Each card has its own depth, vertical offset, and speed multiplier — closer cards scroll faster, distant ones drift past slowly, creating a layered 3D parallax read.
import ParallaxMarquee from '@crazygl/hero-parallax-marquee';
export default function Hero() {
return (
<ParallaxMarquee
heading="PARALLAX"
card1Image="/work/cover-1.jpg"
card2Image="/work/cover-2.jpg"
baseSpeed={60}
/>
);
}heading, subheading, and five card slots cardNImage with per-card cardNDepth, cardNY, cardNSpeed.baseSpeed, cardWidth, cardHeight, gap, perspective, maxRotation.borderRadius, bgColor, transparentBackground.textColor, fontSize, letterSpacing, headingFontFamily, headingFontWeight.npm install @crazygl/hero-parallax-marqueeThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ParallaxMarquee from '@crazygl/hero-parallax-marquee';
export default function Landing() {
return (
<ParallaxMarquee />
);
}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 ParallaxMarquee from '@crazygl/hero-parallax-marquee';
export default function Page() {
return (
<section>
<ParallaxMarquee
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}