Components
Tilt Mockup
A 3D tilt mockup with screen glare.
ProPro, coming soon.
Revenue this quarter
$184,200
<TiltMockup>
<img src="/screen.png" alt="…" />
</TiltMockup>Get notified
Tilt Mockup is a Pro effect. Join the waitlist and we'll email you when it's available.
Usage
Wrap a screenshot or card. It tilts toward the mouse in 3D, with a glare sliding across it, and settles back when the mouse leaves. Touch and keyboard use leave it flat.
import { TiltMockup } from "@zjkm/pro/tilt-mockup";
export function Hero() {
return (
<TiltMockup radius={16}>
<img src="/app.png" alt="The app's home screen" />
</TiltMockup>
);
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Your screenshot or card. | |
maxTilt | number | 10 | Largest tilt in degrees. |
glare | number | 0.35 | Strength of the glare, from 0 to 1. |
radius | number | 16 | Corner radius in pixels. Match your content. |
className | string | Classes for the wrapper. |
With reduced motion, it stays flat.