A request at 22:47
Text story: a chat that books an appointment at night
- 0–2 s 22:47, the customer's request goes out, the assistant replies at once
- 2–5 s one question, one answer, then two slots as tappable chips
- 5–9 s a tap on Friday, 2:30 pm, the “Appointment booked” card springs in, “Perfect, thanks!”
- 9–12 s the clock jumps to 08:12, the owner's push notification drops in
- 12–17 s the camera pulls back, “Automated by Paul”, the chat clears and she starts typing again
- Chat story
- 17 s Loop
- 1080² · 30 fps
- Canvas 2D
- 2.2 MB
Prompt
Build a 17-second looping "text story", 1080×1080: a chat conversation that appears message by message on a phone floating in space — the TikTok format, staged like a product film rather than a flat screen recording. All on-screen text comes from one small dictionary; ?lang=de switches to German.
STORY (short, believable lines, no invented numbers)
22:47, a customer (first name only) writes to a small joinery: her kitchen worktop has swollen up, can they fix it? The business's assistant — clearly labelled "ASSISTANT · AUTOMATED" — replies at once, asks one question (solid wood or laminated?), she answers, the assistant offers two appointment slots as tappable chips, she taps one, a calendar card "Appointment booked" arrives. She writes "Perfect, thanks!". The clock jumps to 08:12 the next morning: a push notification from the owner drops in, then his message lands in the chat. End card beside the phone: "Automated / by Paul". Then the chat clears, the clock returns to 22:47 and she starts typing her first message again — the loop is built so that frame 0 already shows her typing and her first bubble lands at 0.35 s (a TikTok hook: something is happening from the first frame).
PHONE
A plain, generic phone silhouette (no real device clone, no real messenger branding): graphite body with a rim light from the upper left, a punch-hole camera, status bar with a clock that follows the story (22:47 → 22:48 → 08:12), a header with a letter avatar, the business name and "Assistant replies instantly", and a composer at the bottom. Your own messages are typed into the composer character by character (seeded cadence, blinking caret, the send button turns kobalt) and leave as a bubble. Typing indicator: three dots in a kobalt bubble. Timestamps in Geist Mono under each bubble, "· Read" fades in on your messages when the reply starts.
Draw the phone flat into an offscreen canvas at 2× and warp it into the scene in 4 px vertical strips with a real perspective yaw (focal length ~1500), plus a roll — so it reads as tilted in space. A glass reflection band slides with the yaw.
DESIGN
Stage steel #0E1117 with a grey light behind the phone, a faint dot grid with camera parallax, a vignette to #08090C. Customer bubbles cream #F2EFE8 with ink text, assistant bubbles kobalt #2A49B8 with white text, the owner's bubble graphite #262C38. Light kobalt #7B95EE only for labels, "Read", the online dot and the end line. Geist 500–700 for the UI, Geist Mono for timestamps, labels and the caption. Behind the phone one huge outlined word per act (Geist 700, 1.6 px stroke, 17 % white, cropped by the phone): "22:47", "BOOKED", "08:12"; its letters roll up out of a mask with a stagger and stretch vertically while they move. Banned: emojis, real logos, coloured glows, particles, bouncy easing.
TIMELINE
16.0–17.0 (end of the previous round) she types her first message · 0.35 it is sent, 0.7–1.6 typing dots, reply · 2.05–3.1 her answer · 3.4–4.2 dots, the question with two slot chips · 4.95–6.05 a touch indicator (translucent circle) moves onto the second chip, presses at 5.65 with a ripple, the chip fills kobalt, her pick is sent as a bubble · 6.4–7.1 dots, the booked card: check circle springs in, the check draws, two rings leave it · 7.7–8.55 "Perfect, thanks!" · 9.35 the screen dims, the clock jumps, a divider "Today · 08:12" · 10.2–11.4 push notification drops in over the header and leaves · 11.6 the owner's message · 12.8–14.2 the camera pulls back and swings the phone left, the end card rises out of a mask · 14.25 the chat slides up and fades, everything returns to the opening pose · 16.0 she starts typing again.
CAMERA & MOTION
The camera is a sum of critically damped springs, one per keyframe (scale, focus point, yaw, roll, phone position), so it stays a pure function of time; the keys return to the start, so add each spring's unsettled remainder from the previous round (d·(spring(t + D − tᵢ) − 1)) and seek(0) equals seek(D) exactly; it pushes in on the typing dots, the chips (closest, ~1.6×), the booked card and the notification, and pulls out for the time jump. A small zoom kick on every new bubble, a bigger one on the card. Chat layout is bottom-anchored: every item's height grows on its own spring and pushes the history up; bubbles pop from their tail corner on a slightly underdamped spring and rise 46 px. Loop-safe drift on yaw, roll and height. The phone's shadow is one rounded shape with a large shadowBlur, never stacked translucent copies (those show steps).
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, 0.2, 0.5, 1, 2.4, 3.6, 5.65, 7.85, 10.6, 12, 13.6, 15, 16.4, 17 — 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
The TikTok text-story format as a motion graphic: at 22:47 a customer messages a joinery, an automated assistant replies at once, offers two slots, she taps one and the appointment is booked. The next morning the owner writes. A phone in space and a camera that pushes in on every message. 17 seconds, English and German, with the prompt.
What I learned building it
A chat that builds up message by message only stays a pure function of time if every item's height grows on its own spring and the history is anchored at the bottom. And the phone only reads as tilted when it's drawn in strips with real perspective, not just skewed.
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 -
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