A café landing page that moves like film: a live 3D scene driven by the visitor's scroll
Second Crack, a fictional Dubai café · Café · demo built for TheCodeMed
Lighthouse performance94
Accessibility and SEO100 / 100
Layout shift0.01
Works with JavaScript offyes
Cookies and trackers0
LanguagesArabic and English
The problem
- A small café has a good product and a page that looks like every other café page
- A video hero is heavy, mute on phones, and cannot answer to the visitor
- Most 3D pages fall apart on an integrated laptop chip or an older phone
Assessment
The page should show the coffee being made, not describe it. A live scene drawn in the browser costs less than a video, answers to scroll, and can degrade gracefully: a lighter film on an integrated chip, a still page without a GPU or with motion off.
Work done
- A live three.js film: a bean roasts and cracks, becomes a portafilter, pours, the cup takes a heart in the foam, and a neon sign strikes on; one scroll notch or swipe glides to the next stop
- A night-green room with brass at rest and copper only for what is live, a mashrabiya lattice the lamp shines through, and the same world on the board, the shelf, the order and the footer
- Everything else a café needs: a drinks board with pictures, a visit section with hours and a map, an order form with a till receipt, a stamp card that pays a code, a seven-day roast log
- Three tiers from one build: the full film with a lens pass on a discrete GPU, the film without the lens on integrated chips, a still page for software renderers, reduced motion and JavaScript off
- Arabic and English with the film mirrored, phone layouts with the subject lifted into view, fonts preloaded per language
- Static files only: no cookies, no trackers, a strict content security policy, one 222 KB light map as the only downloaded asset
Result
Live as a demo. Lighthouse 94 performance, 100 accessibility, 90 best practices and 100 SEO on a phone profile, with a layout shift of 0.01 and the film playing on an Intel integrated chip.
A demo built to show the service. The café is fictional and says so on the page; no real business is shown.