A background screenshot plus up to five overlay images, each placed on its own depth plane with X / Y / Z / scale controls. On load each layer slides in from depth with a staggered easeOutBack overshoot; hover spreads them further apart along Z.
import HeroTornLayers from '@crazygl/hero-torn-layers';
export default function Hero() {
return (
<HeroTornLayers
backgroundImage="/screenshots/dashboard.avif"
layer1Image="/screenshots/phone-a.avif"
layer1X={-0.4}
layer1Z={0.2}
hoverSpread={1.5}
cameraParallax={0.6}
/>
);
}contentType (heading / two-columns / custom) plus heading, subheading, column1 / column2, or content.overallOffsetX / overallOffsetY, overallScale, overallRotation transform the entire set.backgroundImage full-frame plane behind everything.layerNImage, layerNX, layerNY, layerNZ (depth), layerNScale. Empty image hides the layer.loadDelay (entrance stagger), hoverSpread (Z push on hover), cameraParallax (pointer-driven camera offset).contentAlign, heroHeight, paddingX / paddingY.npm install @crazygl/hero-torn-layersThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ScreenshotTornIntoLayers from '@crazygl/hero-torn-layers';
export default function Landing() {
return (
<ScreenshotTornIntoLayers />
);
}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 ScreenshotTornIntoLayers from '@crazygl/hero-torn-layers';
export default function Page() {
return (
<section>
<ScreenshotTornIntoLayers
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}