All motions

The journey of an order

Isometric explainer: one order through six stations to the front door

Created with AI
  1. 0–2 s the whole board, six stations pop up, the line draws itself in
  2. 2–5.3 s the order on a phone, a cobalt order card rises out of the screen
  3. 6.4–9.4 s the shop system checks payment, address, stock and warehouse, tick by tick
  4. 10.5–14.1 s a robot picks serum and day cream from bins B-14 and B-15
  5. 15.2–18.8 s box, flaps, tape, the label slides out of the printer
  6. 19.9–23.2 s scanner, sorting belt, the parcel is loaded onto the van for route 20
  7. 24.3–27.1 s delivery, the parcel hops onto the doorstep, the door opens
  8. 27.1–29 s back to the whole board, all six steps done
  9. 29–34 s the board shrinks onto Kassel, 380 shipments fly across the country
  • Explainer
  • 34 s Loop
  • 1080² · 30 fps
  • three.js
  • 3.4 MB

Prompt

English · for Claude Code, Codex & co. · 906 words
Build a 34-second looping process explainer, 1080×1080, in three.js: one order of a made-up skincare shop ("Halcyon", order #1048, serum 30 ml and day cream 50 ml, €64.90) travels through six stations of a fulfilment chain, and at every moment you can see where it is and what is happening to it. German and English (?lang=en) from one dictionary.

STAGE
Orthographic camera at a fixed isometric angle (30° elevation, 45° yaw): no orbit, only pan and zoom. Six square plates (8.6 × 0.5 × 8.6, rounded, bevelled) in a zigzag, 13 units apart: +x runs down-right, −z up-right. Between them two data bridges, a floor path, a conveyor (frame, dark belt, slats that move) and a road. Matte warm whites and greys on a #ECE9E3 ground that only receives shadows; one accent, cobalt #2F5BEA, and only the order carries it: the order card, the robot's tote, the parcel, the progress line, the pin over the van.

THE LINE
One ribbon across all stations, grey and dashed in front of the order, cobalt behind it, with a lighter shimmer at its head (a shader discards everything beyond the distance uP). One time curve progress(t) says how far the order is along that line; the card, the robot, the parcel on the belt and the van all read their position from it, so the head of the line always sits under the vehicle.

STATIONS (camera holds ~3.3 s each, then pans 1.1 s while the order travels to the next)
1 Order: a phone on a stand, cart on screen (canvas texture), the "Buy now" button presses in with a ring, a check mark draws itself, a cobalt order card #1048 rises out of the screen and lands floating over the line.
2 Check: a monitor in the shop system ticks payment, address, stock, warehouse one by one (spinner, then a check that pops); every check sends a ring out under the card. Server LEDs flicker while it works.
3 Picking: a shelf with bins B-14 and B-15 lit in cobalt, labels "Bin B-14/B-15". The card drops into a robot's tote, the robot drives to the shelf, both items hop into the tote on arcs, it backs out, turns and drives on.
4 Packing: items hop from the tote into an open cobalt box on a scale; short flaps, then long flaps fold shut on their hinges, tape runs across the seam, a label slides out of a printer and lands on top ("0.42 kg · parcel 4471 0938 21"), the box slides onto the conveyor.
5 Shipping: the parcel passes a scanner arch (a light sheet sweeps, "Scanned · route 20 · Hamburg"), a sorting belt with grey parcels runs behind it under route signs, a pusher shoves it into the van, the roller door closes, a pin appears over the van.
6 Delivery: the van drives along the road and parks beside a house without hiding its door, the parcel slides out of the back and hops onto the doorstep, the door swings open, "Delivered · Tue 10:21".
Then the camera pulls back to the whole board (station names 01–06 above the plates), tilts up to 62°, the board shrinks onto Kassel while Germany, Austria and Switzerland rise as plates (north up, Natural Earth outlines), 380 shipments arc out from Kassel, the order's own arc lands in Hamburg. At the end everything sinks away so frame 0 (an empty ground) follows seamlessly.

HUD (DOM over the canvas)
Top left: "Halcyon · Fulfillment · sample data". Bottom: one white card, full width: step number pill, step name, one sentence of what happens, the order number and the time of the step on the right; below it a six-dot stepper (active dot pulses, done dots fill with a check and pop, the track fills from one finished step to the start of the next). Text changes in the middle of each camera move: old text out upwards, new text in from below. At the map the card turns into three figures: 312 orders today, 96% delivered next day, 3.4 h to dispatch.

CAMERA AND MOTION
Camera keys = anchor, where the anchor sits on screen, visible half-height (zoom interpolated in log space). The raw key curve is smoothed once at load with a critically damped spring at 240 Hz into a table; seek(t) only reads the table, so every move is soft and still a pure function of t. All object moves are ease-in-out or back-out pops; nothing linear. Motion blur when rendering: 7 sub-frames over half a frame time, averaged in a half-float buffer; the HUD stays sharp.

TECHNIQUE
- One HTML page plus film.js as an ES module, three.js vendored next to it, no inline script, no network requests. Stage exactly 1080×1080 CSS px.
- Expose window.MOTION = { duration, fps: 30, width, height, seek(t) }. seek(t) redraws the frame for time t from scratch: seeded PRNG only, no Date, no CSS transitions, no timers. Canvas textures redraw only when their state key changes.
- Loop: seek(0) and seek(duration) look identical.
- With ?render=1 the stage sits unscaled at the top left. Without it, scale to fit and loop with requestAnimationFrame unless a player drives seek.
- prefers-reduced-motion: show one representative still.

CHECK
Render stills at 1.2, 3.6, 7.9, 12.1, 16.6, 20.5, 25.9, 28.0, 32.2 and 33.9, look at every one, fix anything that overlaps, hides the order, is cut off or unreadable, then render again.

How to recreate it

  1. 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.

  2. 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.

  3. 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.

Render commands Download render.mjs
# 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

How a clip is built with Claude Code

Background

One order runs through six stations: bought on a phone, checked automatically, picked by a robot, boxed and labelled, scanned and loaded, delivered to the door. A cobalt line and a six-step tracker show where it is at every moment, and at the end 380 shipments fly across Germany, Austria and Switzerland. 34 seconds, built as code, with a prompt to recreate it.

What I learned building it

For a process, a fixed isometric stage with holds reads far better than one continuous camera flight. The first version was a drone flight and looked good, but you couldn't see the process. What carries understanding is one time curve that every vehicle reads its position from: that way the head of the cobalt line always sits right under the order.

More motions

Contact

Let's discuss
your project
together.

Send me a message or fill out the contact form. I'll get back to you within 24 hours.

Paul Mill

Paul Mill

hallo@paulmill.com