Layered torn posters build a premium campaign collage with depth, shadows, and a subtle peel-away motion.
import TornPoster from '@crazygl/hero-torn-poster';
export default function Page() {
return (
<TornPoster
heading={'Paste it\nup loud.'}
hoverSpread={1.7}
cameraParallax={1.15}
/>
);
}overallOffsetX / overallOffsetY, overallScale, overallRotation (transform the whole set).backgroundImage plus layer1Image…layer5Image (any JPG/PNG/WebP/AVIF; empty hides a layer), each with X / Y / Z (depth) / Scale.loadDelay (entrance stagger), hoverSpread, cameraParallax.contentAlign, paddingX / paddingY.npm install @crazygl/hero-torn-posterThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TornPosterHero from '@crazygl/hero-torn-poster';
export default function Landing() {
return (
<TornPosterHero />
);
}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 TornPosterHero from '@crazygl/hero-torn-poster';
export default function Page() {
return (
<section>
<TornPosterHero
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}