Skip to content

Design study 08 · 3D tilt mockup

Real depth, without a 3D engine.

A stylised phone showing an example (fictional) landscaping site, built from real page layers stacked at different depths. It leans toward the pointer, a glare slides across the glass, and the screen content shifts in parallax — then it settles into a gentle idle sway when left alone.

Concept build · not client work

Written for this site to demonstrate the technique. On your project it would be designed around your brand, content, and performance budget.

Live demo: 3D tilt mockup

Try it: Move your pointer over the phone, drag it on touch screens, or focus it and use the arrow keys (Escape recenters). Live demo — running in your browser
Built with
CSS 3D · Spring physics · Container queries
Libraries
None — plain browser code
Starts
When it nears the screen
Reduced motion
Still frame + Play button
Script weight
Measured when the demo loads

The case study

What it solves, and how it stays fast.

01

The problem it’s built for

Showing a product, an app, or a finished website as a flat screenshot undersells it. A tactile 3D presentation communicates quality — but full 3D engines are heavy for what is often one hero visual. The aim was convincing depth using only the browser’s built-in CSS 3D.

02

How it’s built

  • The mockup is ordinary HTML: frame, screen, and content layers placed at different translateZ depths inside a 3D perspective.
  • Pointer, touch-drag, and keyboard input all drive the same spring, so the motion feels identical however you interact.
  • A glare gradient tracks the tilt angle, and on-screen content moves slightly against it for parallax.
  • Sizes use container queries, so the mockup scales with its stage instead of reflowing.
03

Performance choices

  • Only transforms and opacity animate — the browser composites them without re-laying out the page.
  • No canvas and no graphics library: the whole effect is DOM and CSS plus a small spring loop.
  • The idle sway pauses when the mockup is off screen or the tab is hidden.
04

Accessibility & fallbacks

  • The mockup is keyboard operable: focus it and the arrow keys tilt it; Escape recenters.
  • With reduced motion, it holds a still pose — the idle sway does not run unless you press Play.
  • The example business is clearly labelled as fictional.

Where it fits

Where a design like this earns its place.

Product showcases, premium offer cards, configurators.

Product & app showcases

Show a booking flow, portal, or app the way it feels in the hand.

Premium offer cards

Pricing or package cards that invite a closer look.

Real estate & listings

Feature cards for properties or projects with tactile depth.

Scoped like everything else: available on its own or added to any website package, flat-quoted in your launch plan with a written performance budget — what it does, what it may weigh, and how it behaves on phones and with reduced motion.

Want a moment like this on your site?

Tell us where it should go. You get a written scope, a performance budget, and one flat quote — before anything is built.

Prefer to start with a quick message? Use the message button in the corner — a real person replies, typically within one business day.

Use the up and down arrow keys to move through results, Enter to open one, Escape to close.