An almost-black canvas. A slow horizontal light sweeps left to right, revealing a glossy product screenshot inside a ceramic black-glass frame. Cinematic reveal for luxury SaaS, fintech, and premium B2B tools.
import BlackGlassReveal from '@crazygl/hero-black-glass-reveal';
export default function Page() {
return (
<BlackGlassReveal
screenshot="https://crazygl.com/samples/screenshot-dashboard-dark-2.avif"
heading="A new standard."
sweepPeriod={7}
/>
);
}screenshot media plus screenshotX/Y, screenshotScale, screenshotTilt, and screenEmissive (how bright the revealed display reads).frameColor, frameMetalness, frameRoughness, frameClearcoat, frameThickness, frameDepth shape the ceramic black-glass bezel.sweepPeriod, sweepWidth, sweepIntensity, sweepColor, revealFloor control the light band and how visible the screen sits at rest.parallaxStrength (pointer tilt) and floorReflection (dim mirrored floor).bgColor, transparentBackground.npm install @crazygl/hero-black-glass-revealThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import BlackGlassProductReveal from '@crazygl/hero-black-glass-reveal';
export default function Landing() {
return (
<BlackGlassProductReveal />
);
}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 BlackGlassProductReveal from '@crazygl/hero-black-glass-reveal';
export default function Page() {
return (
<section>
<BlackGlassProductReveal
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}