Device Tilt Effect
Create Apple-style 3D device reveals that rotate into view as the user scrolls.
Overview
The device tilt effect is a popular pattern seen on Apple product pages: a device (laptop, phone, or card) starts tilted away from the viewer and gradually rotates into a flat, front-facing position as the user scrolls. This creates a cinematic 3D reveal that draws attention to the product.
Using ScrollTransform (recommended)
The simplest approach is to use <ScrollTransform> with 3D rotation properties and a perspective value.
This gives you the full effect in five lines of JSX. The perspective prop sets the 3D viewing distance, and ease-out-cubic gives a natural deceleration as the device settles into place.
Manual approach
For full control over the animation, use the <Scene> render prop to access progress directly and compute your own transforms.
Customization tips
Transform origin
The default transform-origin is center center. For a device lying on a desk that tilts up toward the viewer, use center bottom:
Choosing perspective values
- 800-1000px -- Dramatic, exaggerated 3D effect
- 1200-1600px -- Natural, realistic perspective (recommended for most cases)
- 2000px+ -- Subtle, almost flat feeling
Easing choices
ease-out-cubic-- Best for reveals. Fast start, gentle landing.ease-in-out-- Smooth throughout. Good for back-and-forth transitions.ease-out-quart-- Even more dramatic deceleration for a "snap into place" feel.
Adding a shadow animation
Pair the tilt with a CSS shadow that grows as the device comes to rest: