All motions

Make it move

A typographic edit in portrait, cut beat by beat at 128 BPM

Created with AI
  1. 0–1.9 s MA/KE fills the frame, “it” gets a red paper full stop, MO/VE. steps through the font widths on every 16th and grows taller, a yellow wipe closes on the beat
  2. 1.9–3.75 s MA/KE as an outline, filled on the off-beat, “it” on a blue disc, ST/AY. gets taped down, then nothing moves for a whole beat
  3. 3.75–5.6 s MAKE stands up and locks together from three slices, “it” in front of a turning starburst, YOURS. between two echoes splits into YOU/RS.
  4. 5.6–7 s the three words land beat by beat as a poster and nudge the lines already standing
  5. 7–8 s a flip to black and outlines, a sticker slaps on, the camera pushes into the full stop until its red fills the frame
  • Kinetic typography
  • 8 s Loop
  • 1080 × 1920 · 30 fps
  • Canvas 2D
  • 2.3 MB

Prompt

English · for Claude Code, Codex & co. · 825 words
Build a 7.97-second looping 2D typographic edit in portrait 9:16 — stage 1080×1920 CSS px — cut to a 128 BPM grid: 17 beats of 0.46875 s, one hard typographic moment per beat, on the line "Make it move. Make it stay. Make it yours." (German via ?lang=de: "Mach es lebendig. Mach es bleibend. Mach es deins.").

DESIGN
Four colours plus black and paper: vermilion #FF4326, cobalt #2B3DF2, yellow #FFD02B, ink #121212, paper #F3EDE1 — every beat swaps the full-bleed colour field. Archivo 900 for the big words, and its width axis is part of the choreography (62.5 / 75 / 87.5 / 100 / 112.5 / 125 %); Instrument Serif for the small words ("it" / "es") as the contrast. Every beat fills the portrait frame: long words break and stack (MO/VE., ST/AY., YOU/RS. — LEBEN/DIG., BLEI/BEND., DEI/NS.), every line is justified to the safe width by its ink box (actualBoundingBox metrics) and picks the stretch that brings it closest to its share of the height; the block sits optically centred in the safe area. Tracking −1.2 %. Where a word stays small, a counterweight carries the rest of the frame (a large paper disc, outline echo rows, a starburst). Collage elements are paper cut-outs with a slightly hand-cut wobbly edge and one soft shadow down-right (light from the top left): discs, torn strips, a starburst, tape. A soft, quiet film grain — random greys at half resolution scaled up smoothly into a 256 px tile, laid over the finished frame with soft-light at 10 % — lives strictly in screen space, never scales with the camera or the motion blur, and shifts its offset only on the beat, so the colour fields stay calm. Safe areas: no text in the top 10 %, bottom 22 % and right 12 %. Banned: glows, particles, bouncy easing, distorted (non-uniformly scaled) type.

STORYBOARD
0–1.875 MAKE stacked MA/KE fills the frame on red; "it" drops onto paper and a red paper full stop pops on the off-beat; the stacked MO/VE. steps through the width axis on every 16th (125 → 62.5 %, each line refitted to the same width so the block grows taller) over a large red disc; five rows of MOVE. slide in from alternating sides while the centre row shrinks into place; a yellow field carried by a red strip wipes diagonally and closes on the next beat.
1.875–3.75 MA/KE at 125 % as an outline, filled on the off-beat; "it" on a cobalt disc with a rotational snap; the stacked ST/AY. is taped down at two corners on two 16ths, then one beat where nothing moves at all, only the field turns red.
3.75–5.625 MAKE stands up a quarter turn to fill the height and locks together from three slices; "it" in front of a turning starburst; YOURS. between two outline echoes — on the off-beat the echoes fly off and the word splits into YOU / RS., then turns into a yellow outline and the two lines shear apart.
5.625–7.03 The poster: the words stacked and justified to one width at different stretches (three lines in English, five in German), landing one word per beat (punch, from the right, from below), each landing nudging the lines already standing.
7.03–7.97 Black, outlines, a starburst sticker "make it" slaps on; the full stop turns red, the camera pushes exponentially into it until its red fills the frame — the field the first beat lands on.

MOTION
Hits are exponential zoom punches 1 + A·e^(−22·t), settles critically damped 1 − (1 + w·t)·e^(−w·t), tiny anticipation pull-backs before a hit, slow drift in between; nothing overshoots. Motion blur by averaging 9 whole-frame samples (24 for the final zoom) over half a frame, never across a cut. Every frame is a pure function of t; the loop closes on the beat.

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: three per beat, plus every 0.1 s from 0.5 s before to 0.5 s after 0, 1.875, 3.75, 5.625 and 7.03, and every 0.1 s across 0.8–3.6 and 4.8–5.6 — 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 typographic edit in portrait: 17 beats, each one a hard moment. Huge words slam onto colour fields, switch from fill to outline, step through the font's width axis, split into lines and stack into a poster. Paper cut-outs and film grain give it the collage look, and the last full stop is the red of the first frame. 8 seconds, 9:16, built as code — with a prompt to recreate it.

What I learned building it

A silent edit lives on its grid: when every change sits exactly on the beat and the off-beat gets its own small gesture, you hear the tempo while watching. And the strongest move turned out to be a beat in which nothing moves at all.

Inspiration

The model was a video by @edrie_edits ((opens in a new tab)) on TikTok. What I built is my own take on the format, not the video itself; the prompt above describes exactly this version.

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