The Gimli Glider
True story with voice: the flight that ran out of fuel in mid-air
- 0–0.7 s The airliner rushes past the camera, huge, “Mid-flight: tank empty.” punches in
- 0.7–4.0 s The altimeter counts from 41,000 down to 35,000 ft, first the left, then the right engine quits, the light cools
- 4.05–6.28 s A whip pan up into the x-ray view, the fuel drains from both wing tanks: “Empty.”
- 6.28–11.95 s A whip pan to black, “1.77” slams in digit by digit, bars set 1.77 lb/L against ≈ 0.8 kg/L, × 2.2
- 11.95–15.0 s A dive through five cloud layers, the aircraft side-slips onto the old runway at Gimli, Manitoba
- 15.0–17.5 s Touchdown with a camera kick, the counter runs to 69 / 69: 61 passengers, 8 crew
- 17.5–19 s Rising back through the cloud layers onto the first frame
- Voice-over
- 19 s · with sound
- 1080 × 1920 · 30 fps
- Canvas 2D
- 5.1 MB
Prompt
Build a 19-second vertical (1080 × 1920, 30 fps) motion graphic telling a true story: the Gimli Glider, 23 July 1983. Inputs: two photoreal Higgsfield plates (sky.webp: above a cloud deck at dusk; airfield.webp: aerial view of a long old military runway in prairie, evening light; the sky plate is designed to be swapped for an AI cloud clip later) and five ElevenLabs voice lines (German and English, with word timestamps). Canvas 2D, vanilla JS, deterministic seek(t), ?lang=de|en. Built for short-form video: motion from frame 0, word-by-word captions, hard cuts.
DESIGN
Night blue and steel; text #f2f2f2; red #e8362f only for key words and the wrong value (pounds per litre); amber #ffb547 only for the finding "1.77". Archivo 900 with the width axis for hook, number and 69 / 69; Archivo 800 for captions; Geist Mono for every measured readout. No logo or wordmark; the top left stays for hook and readouts. Safe zones: top 8 %, bottom 18 %, right 10 %. The aircraft is a low-poly 3D model built in code (lofted fuselage, swept wings, two nacelles with pylons, fin, stabilisers, main gear), projected through a pinhole camera and flat-shaded from one light; no livery, no logo.
CAPTIONS
Word by word on the voice timestamps, 2–4 words per line, white with a dark outline, the active word pops, key words red ("empty", "1.77", "pounds", "69"); baseline just above the bottom safe zone. Graphics are laid out around the caption band.
STORYBOARD
0.0 Cover in motion: the airliner rushes past the camera from ahead and below, huge and cropped, with sub-frame motion blur and a slight camera roll; the hook "Mid-flight: tank empty." punches in during the first 0.4 s (fully readable on frame 0).
0.7 The camera settles behind the aircraft; altimeter 41,000 → 35,000 ft with live kilometres; engine tags L then R switch to OFF on the spoken words, a small camera kick on the second, exhaust streaks die, the image cools.
4.05 Whip pan up to straight above the aircraft (motion blur), x-ray view: planform lines, spars, ribs, both wing tanks drain from tip to root, "Empty."
6.28 Whip pan sideways onto near-black. "1.77" slams in glyph by glyph on the spoken digits with a camera kick on the last 7; red bar 1.77 lb/L and white bar ≈ 0.8 kg/L on a 0–2.0 axis; dashed copies of the kilo bar labelled × 2.2; 1 lb = 0.45 kg.
11.95 Dive through the clouds: five layers cut from the cloud deck at different scales stream past with parallax and motion blur.
12.4 A close aerial of the runway, 3D camera calibrated to the photo; the aircraft comes in from below in a side-slip, a dashed glide line runs ahead to a touchdown ring, the shadow sharpens and slides under the wheels; "DISUSED MILITARY BASE / Gimli, Manitoba".
14.95 Touchdown with a camera kick, roll-out, nose lowers.
15.6 Image dims, counter 00 → 69 on "sixty-nine": "69 / 69", "61 PASSENGERS · 8 CREW".
17.55 Rise back through the cloud layers onto the exact cover frame.
MOTION
Critically damped springs, cubic/exponential easing, no overshoot except the camera kicks (damped shakes, 0.6 s). Whips and fly-throughs use 6–10 sub-frames of motion blur. Ken Burns on both plates; blur only from pre-shrunk copies. Soft grain, light vignette.
AUDIO
No music, atmosphere from sound effects only: a synth whoosh and a soft thud under the opening fly-by over a quiet cabin hum, engine spool-downs on L and R, glide wind, tank gurgle, whooshes on both whip pans and both cloud passages, clacks on the digits with a thud and sub drop on the last 7, pencil strokes for bars and glide line, wheel touchdown with a thud and concrete scrape, a tick run under the counter. Voice on top, −16 LUFS.
TECHNIQUE
One render(t), painter's-sorted faces with backface culling, shadow by projecting every face onto the ground, captions and camera kicks driven by the baked word-time table per language.
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, plus every 0.1 s across 0–1.2, 4.0–4.6, 6.2–6.6, 11.8–12.8, 14.8–15.4 and 17.4–19 — in both languages. 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
Almost eleven kilometres above Canada both engines quit, the tank is empty, and the culprit is a number: 1.77, the factor for pounds instead of kilograms. The aircraft dives through the clouds, glides onto an old military airfield, and all 69 on board survive. 19 seconds, 9:16, with voice and sound, built as code — with a prompt to recreate it.
What I learned building it
An aircraft over a photo only reads as real once the camera is calibrated to the photo and the shadow comes from the same geometry: the runway's width in the frame gives away horizon and pitch, everything else follows. Faces wound in opposite directions cancel each other when filled as one path, so the shadow is filled face by face.
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.
- 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.
- 02
ElevenLabs Eleven v4
Voice · Konrad
- Almost eleven kilometres above Canada, both engines quit.
- The tank is empty.
- The culprit was a number: one point seven seven. The factor for pounds, not kilograms.
- The captain glides to an old military airfield.
- All sixty-nine survive.
One voice with a timestamp for every word. Pictures and numbers land exactly on the spoken word, and the subtitles follow word by word.
- 03
Claude Code
Animation
934 lines of code
Camera, type, numbers and graphics as canvas code, every frame computed from the time. The prompt is in the panel above.
- 04
ffmpeg −16 LUFS
Mix
32 sound cues
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 (2)
Photorealistic view from cruising altitude 11 km above a solid sea of clouds at dusk, deep blue upper sky fading to a thin warm orange band at the horizon, the sun just below the horizon, crisp cloud tops with soft long shadows, vast quiet atmosphere, large empty sky in the upper two thirds, cinematic, high dynamic range, no aircraft, no text, no logos
Photorealistic aerial photograph looking down at a long straight disused military airfield runway in flat Canadian prairie farmland, late summer evening, low golden sun, long shadows, cracked pale concrete with a faded centre line, green and golden fields around, a few small tents and cars near the far end of the runway, seen from about 1500 m altitude on a straight approach, runway running vertically through the frame, sharp detail, no text, no numbers, no logos
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 -
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 -
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