The inbox factory
Isometric satisfying loop: requests get sorted, stamped, packed and shipped
- 0–1.5 s the whole factory on a floating slab, requests drop out of the hopper
- 1.5–4.1 s camera on SORT, a pusher sets every box onto its lane by colour
- 4.1–6.5 s STAMP, heads slam down and every request gets its check
- 6.5–8.7 s PACK, heads fold the flaps shut, tape runs across the seam
- 8.7–12 s SHIP, lifts rise, parcels slide off the edge, the camera pulls back to the whole slab
- Isometric loop
- 12 s Loop
- 1080² · 30 fps
- Canvas 2D
- 2 MB
Prompt
Build a 12-second looping "satisfying isometric loop", 1080×1080: a small factory on a floating slab turns a pile of requests into shipped parcels. Everything runs on one 120 BPM indexing conveyor, so the loop is exact.
WORLD
True isometric projection (30°), viewer looking along (−1, −1, −1). x runs along the line (screen right-down), y across three lanes (y = 3, 5, 7), z up. A slab 15.2 × 8.4 units, 0.7 thick, floating over a soft broad shadow far below it, a faint unit grid on top, a thin kobalt line around its sides. Flat shading only, three brightness steps per box (top 1.0, left face 0.86, right face 0.72) plus a 1 px lighter edge on the top's front edges; no gradients on objects. Soft contact shadows under everything that stands on the slab.
FLOW (one slot = 1.1 units)
Each beat (0.5 s) every belt steps one slot in 0.24 s on a normalised critically damped spring, then dwells while the stations work. Item k appears on beat k; its type comes from a seeded 24-step sequence (8 of each, never three alike in a row), so beat 24 = beat 0.
- INBOX: a steel hopper with a kobalt rim on four legs; the next three envelopes sink inside it; each item drops out of the hopper's neck onto the belt (gravity, then a 1–2-frame squash).
- Items: open cardboard boxes (#D2CAB8) with an envelope on top in one of three calm tones: kobalt #2E4CB6, cream #EEE6D3, graphite #3A3F49. Two flaps stand open, leaning out at 112°.
- 01 SORT: at the junction (a roller table) an overhead carriage on a gantry rail lowers a kobalt paddle beside the box and pushes it sideways onto its lane during the next step (kobalt → far lane, cream stays, graphite → near lane); it lifts, travels and lowers again during the dwell. Side lanes therefore run one slot behind.
- 02 STAMP: a gantry with one kobalt stamp head per lane; it only fires when a box is under it: accelerating drop, hard stop, the box squashes, a seal with a check pops onto the envelope, the head springs back up. The camera punches in 3 % on every hit.
- 03 PACK: folding heads press the flaps shut (flaps rotate about their hinges, head follows the flap tips), then a strip of tape in the envelope's colour runs across the seam.
- 04 SHIP: a lift raises the parcel 0.8 units, the next step pushes it down an inclined roller chute; it leaves the end of the chute and tumbles off the edge of the slab, fading out.
Gear pairs on the station housings (12 and 8 teeth) step one tooth per beat. A counter kiosk at SHIP and a HUD tally roll their digits on every parcel shipped (batch 01–24, so it repeats with the loop).
CAMERA
Isometric, so no orbit: zoom and pan only, eased in and out (quintic). Wide → SORT ×1.85 → STAMP ×2.15 → PACK ×2.15 → SHIP ×1.9 → back to wide, landing exactly on the opening frame.
HUD
Geist Mono labels top left ("PM · ISO FACTORY") and top right (BPM, beat n/24, shipped n/24); a 24-tick beat ruler; one big Archivo 900 expanded caption per shot — INBOX ZERO, SORT, STAMP, PACK, SHIP, INBOX ZERO — whose letters roll up out of a mask with a stagger, with a kobalt mono sub line. Light scrims behind the HUD. Background cool grey-blue #E7EBF2 with a grey light, accent deep kobalt #18318A on machines only. Banned: toy colours, glows, particles, bouncy easing.
DEPTH
Draw the slab, belts and static shadows once into an offscreen canvas. Everything else is a list of boxes sorted topologically each frame: A before B if A ends before B starts on x, y or z (only for pairs whose screen bounds overlap); unresolved pairs by priority, then by centre depth. The hopper neck has a higher priority than the items, so a box dropping out of it is hidden until it leaves the neck.
MOTION
All moves are springs or exponential/quintic eases that land exactly; motion blur by averaging whole-frame samples across 0.4 of a frame — at least 7, one per ~1.5 px of camera travel; the HUD is drawn once on top, unblurred.
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, 2.2, 3.05, 3.3, 5.6, 8.0, 9.4, 10.2, 11.2, 12. 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
An indexing conveyor in true isometric: requests drop out of a hopper, get pushed onto three lanes by type, stamped, folded shut, taped and sent down chutes — 24 per loop, all on a 120 BPM beat. 12 seconds, built as code, with a prompt to recreate it.
What I learned building it
In isometric, sorting by depth isn't enough: a long beam has its centre in front of a small box and still sits behind it. Only a pairwise check along the axes keeps the order stable. And an indexing conveyor makes the loop exact.
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 -
Infinite zoom into the detail Infinite zoom 0:15 -
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 -
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