All motions

Where the fuel money goes

Explainer with voice: where the money for a litre of petrol goes

Created with AI
  1. 0–0.5 s Close-up of the fuel nozzle, “Where does your money go?”, at once the drop breaks off and the camera pulls back
  2. 0.5–1.1 s The camera tilts down with the falling drop into the measuring glass
  3. 0.8–5.4 s A stream fills the glass to the one-litre mark, “€2.00” slams in tagged “example”, the glass reads “€2.00 = 100 %”
  4. 5.4–8.55 s Energy tax: 51.41 ct slams in, the bottom layer splashes into the glass (25.7 %)
  5. 8.55–11.6 s VAT: 31.93 ct, 16.0 %, worked out as 200 ct × 19/119
  6. 11.6–14.7 s Carbon price: ≈ 15 ct, 7.5 %
  7. 14.7–17.1 s A bracket over the three layers, 49 %, the 50 % line draws in, ≈ €0.98 slams in
  8. 17.1–18.65 s The glass breaks apart along the 50 % line, “Nearly half” big in red
  9. 18.65–19.5 s The camera tilts back up to the nozzle, the question slams in again
  • Voice-over
  • 19.5 s · with sound
  • 1080 × 1920 · 30 fps
  • Canvas 2D
  • 2.6 MB

Prompt

English · for Claude Code, Codex & co. · 1,057 words
Build a 19.5-second vertical (1080 × 1920, 30 fps) explainer motion graphic in Canvas 2D: where the money for one litre of petrol goes in Germany. Inputs: one Higgsfield still (studio macro of a chrome fuel nozzle on black, a single golden drop hanging from the spout, 1152 × 2048) and a five-line ElevenLabs voice-over in German and English with word timestamps. Language via ?lang=de|en; German numbers with a decimal comma, English with a point. Every frame is a pure function of t; the last frame is the first. Built for short-form video: something big happens from frame 0.

DESIGN
The black studio of the plate (#0A0909) is the stage, so plate and graphics share one world. Archivo 900 for big numbers and the hook, Geist for labels, Geist Mono for sums and footnotes. Paper #E9E4DA for text, brick red #C8452C as the only accent (amounts in the subtitles, "ct", the example tag, the bracket, the cut, "Nearly half"), navy steps #3F6590 / #7F9DBE / #B9CADB for the three tax layers, gold only for the fuel. A precise one-litre measuring glass seen slightly from above: elliptical rim, thick base, wall thickness, specular streaks from one upper-left key light, a bright refraction edge where the liquid meets the wall, a meniscus ring, printed graduation marks every 10 % that follow the curvature, soft shadow, amber caustic and a striped, fading floor reflection. Labels hang off the glass on kinked leader lines. Top left, after a short red bar: "Germany · as of Nov 2026" on the cover, then from the price on the footnote "Example price · Germany · as of Nov 2026 / Energy tax cut until 31 Dec 2026". No logo. Word-by-word subtitles at y ≈ 1468: Archivo 800, 80 px, white with a dark outline, 2–4 words per line, the active word pops slightly, amounts in red. Very quiet film grain. No glows, no white flashes.

STORYBOARD
0.0–0.5 Frame 0 is the poster: the plate at 1.7× on the drop, top darkened, hook "Where does / your money go?" (second line gold). From the first frame the drop (handed over from the plate to a drawn drop in 0.08 s) snaps off and the camera rips back to 1× (14-sample motion blur); the hook flies up and out.
0.2–1.1 The camera tilts 1500 px down with the falling drop (gravity, g ≈ 6600 px/s²) into the glass; a thin stream follows from the nozzle, the drop lands with a small kick.
0.8–5.4 The stream fills the glass to the one-litre mark with ripples. "€2.00" slams in on "two" (scale 1.36 → 1, exponential, camera kick), red outlined "EXAMPLE" tag; the glass gets "€2.00 = 100 %".
5.4–14.7 One layer per line. At each line start the camera cuts hard to the coming layer (push to 1.08). On the spoken amount the number slams in with a camera kick (51.41 ct, 31.93 ct, ≈ 15 ct), counts up in 0.4 s, and the layer shoots up from the bottom at the same rate and splashes: the surface bobs, ripple rings run out, six droplets jump and fall back. A mono sub-line explains it (fixed amount per litre · 19 % · 200 ct × 19/119 · rounded, excl. VAT), the side label (name, amount, share) slides in.
14.7–17.1 Sum line 51.41 + 31.93 + 15 ≈ 98 ct, a red bracket grows over the three layers (49 %), a dashed 50 % line draws across, "≈ €0.98" slams in on "one".
17.1–18.65 The big moment on "Nearly": the glass breaks hard along the 50 % line — the lower half with the taxes drops, the upper half with the rest lifts and tilts away, a gold cut face and a red cut edge, strongest camera kick; "Nearly half" slams in big in red; the rest is named without numbers (oil, transport, processing, station, profit).
18.65–19.5 Everything clears, the camera tilts back up to the nozzle and accelerates into the 1.7× close-up while the hook slams back in: frame 19.5 = frame 0.

MOTION
Cubic in-out for camera reframes, exponential settles for slams, damped camera kicks (8–10 Hz, e^(−9t)); nothing overshoots. Motion blur by averaging 8–14 whole-frame samples across a half-frame shutter during the opening, the tilts, the break and the closing push.

AUDIO
Voice lines at fixed times; every event sits on a word timestamp. A tap drip and a low whoosh on frame 0, an ink-drop splash and a thump when the drop lands, a riser under the fill into an impact and a ding on the price, a short impact on every amount with ticks under the count, a small drop splash plus a quiet water slosh for each layer, a line run for the bracket and the 50 % line, a deep impact on the sum, and for the break a deep impact, a crack, a stamp and a water slosh. A calm documentary music bed at about −24 dB, ducked under the voice; mixed to −16 LUFS.

TECHNIQUE
Canvas 2D, plate pre-scaled once into an offscreen canvas with a feathered edge, world coordinates under one camera (pull-back, tilt, push-ins, kicks), the glass drawn twice under two clips for the break, text and subtitles in screen space, rendered frame by frame through headless Chrome and muxed with ffmpeg.

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: every 0.5 s from 0 to 19.5, plus every 0.1 s across 0–1.2, 4.6–5.6, 14.5–15.5, 16.5–17.5 and 18.4–19.5 — in both languages.

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

A drop falls from the fuel nozzle into a measuring glass, and the glass shows where the €2.00 for a litre of petrol in Germany goes: energy tax, VAT and the carbon price colour it layer by layer until it breaks at the 50 % line, together nearly half. 19.5 seconds, 9:16, with voice and sound, built as code — with a prompt to recreate it.

What I learned building it

A photo plate and a code graphic only belong together when they live in one world: the same ground, one camera, and the link (the drop) handed over exactly where it hangs. Redrawing the plate's drop only works dark and transparent — a saturated gold drop jumps right out of the photo. A single break (the glass splitting at the 50 % line) does more than any extra effect: the punchline becomes the motion.

How it was made

Photoreal image plates from Higgsfield, the animation as code, voice and sound from ElevenLabs. Below is exactly what was used: the same prompts, the same voice, the same sounds.

  1. 01 Higgsfield Soul 2

    Image plates

    Backgrounds only, no text: anything that has to be read is drawn on top by the code, pin-sharp. Whatever wasn't clean was generated again.

  2. 02 ElevenLabs Eleven v4

    Voice · Markus

    1. A litre of petrol in Germany for two euros. Where does your money go?
    2. Just over fifty-one cents is energy tax.
    3. About thirty-two cents is VAT.
    4. About fifteen cents is the carbon price.
    5. Almost one euro in total. Nearly half.

    One voice with a timestamp for every word. Pictures and numbers land exactly on the spoken word, and the subtitles follow word by word.

  3. 03 Claude Code

    Animation

    944 lines of code

    • Canvas 2D
    • Higgsfield-Platte
    • Bewegungsunschärfe
    • Wort-Untertitel

    Camera, type, numbers and graphics as canvas code, every frame computed from the time. The prompt is in the panel above.

  4. 04 ffmpeg −16 LUFS

    Mix

    42 sound cues

    Drips, splashes and water sloshes, an impact on every amount with ticks under the counter and for the break a deep impact, a crack and a stamp, under them a documentary music bed, ducked beneath the voice.

    Voice, sound effects and music placed on the picture's events, music ducked under the voice, measured to −16 LUFS.

Image prompts, word for word (1)
Soul 2 · 9:16
Cinematic studio macro photograph of a chrome fuel pump nozzle hanging diagonally, a single clear golden drop of petrol falling from its tip, pure deep black background, one hard rim light from the upper left, crisp reflections on the brushed metal, black rubber hose, shallow depth of field, premium commercial look, no text, no logos, no brand

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