Infinite zoom into the detail
Infinite zoom: from the desk down to a single dot in the code
- 0–2.5 s a desk from above, the camera dives into the laptop screen
- 2.5–5 s a contact form, the cursor clicks “Send request”, the dive goes into the button
- 5–7.5 s the button's round badge holds the workflow: form, check, calendar, reply
- 7.5–12.5 s the check opens up as code, execution stops at the breakpoint on line 8 — into the dot
- 12.5–15 s inside the dot the PM mark, and in its knot the desk from the start
- Infinite zoom
- 15 s Loop
- 1080² · 30 fps
- Canvas 2D
- 2 MB
Prompt
Build a 15-second looping infinite zoom, 1080×1080: one unbroken dive, scene inside scene, from a desk down to a single dot in a line of code, and inside that dot the desk again. No cuts, no fades, no crossfades: every scene is literally contained in the one before it (Droste), so the last frame is the first.
SCENES (each drawn in its own 1080 × 1080 coordinate system; the next scene sits in a square at point P with factor F)
1 DESK, steel #151A23, flat lay seen from straight above: a laptop opened flat (aluminium lid, dark bezel, keyboard, trackpad), a notebook with a handwritten to-do list in Instrument Serif ending in a kobalt "→ automate it", a kobalt pen, a kobalt-light sticky note "reply < 1 day", a mug of coffee, a phone with a "New request" notification, a cable. Flat hard shadows, no blur, all cast in the same direction. The laptop screen shows the website → F 6.
2 WEBSITE, cool white #F4F6FA: nav with the PM mark and "Paul", a headline "Tell me what eats your time.", three facts, a contact form card (name, email, message filled in, privacy checkbox ticked). A cursor glides in on an arc and clicks the small send button; the status beside it turns to a spinner "Sending…", then "Sent ✓", the tick drawing itself on; the cursor leaves. The button → F 8.
3 BUTTON, white: a huge kobalt #18318A pill "Send request" (Geist 600), a ripple runs out from the click point. On its right a round badge in graublau #E7EBF2 → F 9.
4 WORKFLOW, graublau with a dot grid: four dark graphite cards — Form → Check → Calendar and Reply — joined by rounded elbow lines with arrowheads and kobalt pulses; mono labels "01 FORM" …; white chips pop in under them ("Lena Hart", "running…", "Thu · 10:00", "queued"); a dashed kobalt ring marches around Check. The Check card → F 8.
5 CODE, graphite #16181D: an editor tab "check.ts", line numbers, twelve lines of Geist Mono with quiet syntax colours (keywords kobalt-light, strings cream, calls white, comments grey). An execution highlight steps down the lines and stops on line 8, a chip says "paused · line 8". In the gutter of that line: a cream breakpoint dot → F 30.
6 INSIDE THE DOT, cream #F2EFE8: the PM mark in steel, huge; its knot is a steel disc with a kobalt ring, "Paul" and "AUTOMATION & AI" below. The knot holds scene 1 → F 22. Total zoom ≈ ×2 280 000.
Each portal (screen, button area, badge, card, dot, knot) is filled with exactly the background colour of the scene it holds, and the child square sits inside it with a margin, so the seam is invisible at every scale.
CAMERA
Log-linear zoom, 2.5 s per scene. Within a scene, log-zoom = lnF · p(τ) with p(τ) = βτ + (1 − β)(τ − sin 2πτ / 2π) and β = 0.5 · 2.5 / lnF: the zoom rate is the same slow value at every scene boundary — a breath while each new scene fills the frame — and faster in between. The target P slides to the centre on a smoothstep of p, so every boundary is a pure zoom about the centre. Draw only three scenes at a time (current, child, grandchild), each clipped to its square; never transform deeper than ×F.
HUD
Thin corner brackets lock onto the next portal while it is small and fade as it grows. One dark chip bottom left (Geist Mono): "INFINITE ZOOM", the running zoom factor with thin-space digit groups (×1 … ×2 280 960), "05 / 06 CODE", and six progress segments.
MOTION
Motion blur: average whole-frame samples over a 0.4-frame shutter, at least 16, one per ~2 px of radial smear — the zoom turns that into a radial streak on its own. Pulses on a 1.25 s period, everything else keyed to the scene timings, so the loop closes. Banned: lens flares, glows, particles, camera shake, rotation tricks.
TECHNIQUE
- One self-contained HTML page plus one JS file (no inline script, no libraries, no network requests). Stage exactly 1080×1080 CSS px, or the size named above (1080×1920 for portrait).
- Expose window.MOTION = { duration, fps: 30, width, height, seek(t) } with the stage size in width and height. seek(t) redraws the frame for time t from scratch: no state between frames, no Math.random (seeded PRNG only), no Date, no CSS transitions, no timers.
- Loop: seek(0) and seek(duration) must look identical.
- With ?render=1 the stage sits unscaled at the top left (for frame capture). Without it, scale the stage to fit the window and loop with requestAnimationFrame.
- prefers-reduced-motion: show one representative still, no loop.
CHECK
Render stills at the listed times, look at every one, fix anything that overlaps, is cut off, aliased or unreadable, then render again. Report only when frame 0 equals the last frame.
Stills: 0, 1.25, 2.5, 3.4, 5, 6.25, 7.5, 8.8, 10, 11.25, 12.5, 13.75, 15. How to recreate it
-
Give the prompt to a coding agent
Create an empty folder and paste the prompt into Claude Code, Codex or Cursor. The agent writes one HTML page and one script — the animation then runs right in the browser.
-
Let it check the stills
The prompt makes the agent render stills and look at them itself. Only refine what you don't like in the picture: “scene 3 is too busy” works better than a new prompt.
-
Render to MP4
Because every animation can draw any frame exactly through
window.MOTION.seek(t), a small script renders it frame by frame — no stutter, no screen recording. Then ffmpeg joins the frames into a clip.
# 1 · Render every frame (Chrome, Node ≥ 22) node render.mjs http://localhost:3000/ \ frames/ frames 30 # 2 · Join the frames into an MP4 ffmpeg -framerate 30 -i frames/%05d.png \ -c:v libx264 -preset slow -crf 22 \ -pix_fmt yuv420p -movflags +faststart \ my-motion.mp4
Background
One shot without a cut: from the desk into the laptop, into the send button, into the workflow behind it, into the code of one step, into a single dot — and inside it the same desk again. A zoom factor of over two million, 15 seconds, built as code, with the prompt.
What I learned building it
The seam only disappears when every portal has exactly the background colour of the scene it holds. And I never draw more than three levels at once — any deeper and the graphics lose their precision.
More motions
-
An agent platform, introduced UI motion 0:15 -
Agents that pick the model UI motion 0:14 -
A sentence becomes an app UI motion 0:15 -
An operating system, introduced UI motion 0:47.2 -
Your new design partner Voice-over 0:54.3 -
Ten kilometres, floating UGC ad 0:12.6 -
The journey of an order Explainer 0:34 -
Make it move Kinetic typography 0:08 -
From noise to a workflow Particles 0:14 -
The Gimli Glider Voice-over 0:19 -
Oscilloscope intro Oscilloscope 0:20 -
A keystroke in cross-section Explainer 0:20 -
A ring called Orbit UI motion 0:10 -
The bug that wants to stay Short film 0:20 -
Shin, not foot Voice-over 0:17 -
Jellyfish in a light shaft Organic loop 0:18 -
A logo that comes alive Logo reveal 0:08 -
How circles draw any shape Explainer 0:20 -
Pixel wizard Pixel art 0:16 -
The shortest war Voice-over 0:16 -
Loose mosaic wall Mosaic 0:20 -
Near fall Physics simulation 0:09 -
A Negroni, explained Explainer 0:20 -
Where the fuel money goes Voice-over 0:19.5 -
One print, nothing else Title sequence 0:20 -
Cube stack Short film 0:07 -
A request at 22:47 Chat story 0:17 -
Claude Code in three steps Voice-over 0:17.5 -
The inbox factory Isometric loop 0:12 -
From 0 to 100 % soft Physics simulation 0:10 -
One line, three inks Showreel 0:20 -
The request breaks out Physics simulation 0:15 -
The slicing machine Isometric loop 0:09 -
How backlinks work Explainer 0:20 -
A ball that grows with every bounce Physics simulation 0:10 -
One shape, fourteen states UI motion 0:14 -
What makes a home Paper cut-out 0:20 -
Words that carry Kinetic typography 0:20 -
Shard logo reveal Logo reveal 0:11