Portfolio cards float behind the headline and can be dragged with momentum, making the hero feel tactile and playful.
import DraggablePortfolioCards from '@crazygl/hero-draggable-portfolio-cards';
export default function Page() {
return (
<DraggablePortfolioCards
heading={"A stack you\ncan explore."}
card1Image="/shots/dashboard.avif"
cardCount={5}
cursorTilt={0.7}
/>
);
}contentType, heading, subheading, or custom nodes.card1Image–card5Image (your real product shots; ~16:9 reads best).cardCount (2–6), cardSize, cardCornerRadius, groupOffsetX/Y.cursorTilt (pointer parallax), ambientFloat (idle bob).edgeGlowColor / edgeGlowStrength, shadowStrength.keyColor, fillColor, screenBrightness (emissive boost on the screenshots).bgTop / bgBottom.npm install @crazygl/hero-draggable-portfolio-cardsThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import DraggablePortfolioCards from '@crazygl/hero-draggable-portfolio-cards';
export default function Landing() {
return (
<DraggablePortfolioCards />
);
}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 DraggablePortfolioCards from '@crazygl/hero-draggable-portfolio-cards';
export default function Page() {
return (
<section>
<DraggablePortfolioCards
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}