Your product screenshot held inside a brushed-metal frame, lit like a physical product photograph. The frame sits at an adjustable static angle, tilts with the pointer for parallax, and optionally rotates to catch studio highlights.
import FloatingMetalFrame from '@crazygl/hero-floating-metal-frame';
export default function Hero() {
return (
<FloatingMetalFrame
heading="See it in action."
screenshot="https://crazygl.com/samples/screenshot-dashboard-dark-2.avif"
frameRoughness={0.28}
rotationSpeed={0.05}
/>
);
}heading + subheading, two columns, or a custom node, with contentAlign/padding.screenshot (frame auto-matches its aspect), screenScale, screenshotX/Y, screenBrightness, glassReflection.frameColor, frameMetalness, frameRoughness (chrome → brushed → matte), frameThickness, frameCornerRadius, frameDepth, frameClearcoat.frameAngleY/X, rotationSpeed, pointerParallax, shadowSoftness/Strength.keyLight, fillLight, backLight, envIntensity (studio reflection).bgTop/bgBottom gradient.npm install @crazygl/hero-floating-metal-frameThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ScreenshotInAFloatingMetalFrame from '@crazygl/hero-floating-metal-frame';
export default function Landing() {
return (
<ScreenshotInAFloatingMetalFrame />
);
}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 ScreenshotInAFloatingMetalFrame from '@crazygl/hero-floating-metal-frame';
export default function Page() {
return (
<section>
<ScreenshotInAFloatingMetalFrame
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}