All motions

A logo that comes alive

A hand-drawn logo animation in portrait for an invented lemonade

Created with AI
  1. 0–0.56 s close on a drop of lemonade just leaving a straw, then the camera pulls back as it falls and it splashes into a puddle
  2. 0.56–1.85 s the letters shoot out of the puddle and land with squash & stretch
  3. 1.85–3.3 s the i hops, tips into the z and is caught by its neighbours
  4. 3.3–5.05 s lemonade rises in the letters with a wave and bubbles, a shine runs across
  5. 5.05–8 s a lemon slice jumps onto the i as its dot, then everything sinks and the drop shoots back up to the straw
  • Logo reveal
  • 8 s Loop
  • 1080 × 1920 · 30 fps
  • Canvas 2D
  • 492 KB

Prompt

English · for Claude Code, Codex & co. · 965 words
Build an 8-second looping hand-lettered logo animation in portrait 9:16 — stage 1080×1920 CSS px — for an invented lemonade brand "fizz" (wordmark plus a lemon-slice mark, tagline "sparkling lemonade"). The "logos come alive" format: letters hop, squash, stumble and fill with liquid, drawn like an iPad sketch, and the last frame flows back into the first.

DESIGN
Warm paper ground #F7F1E5, nothing else in the frame. The wordmark is built, not typeset: each letter is a skeleton polyline (f with a hooked top and a crossbar, a dotless i, two z) stroked with an 88 px round pen; every sample is pushed ±1.6 px along its normal by static smooth noise so the line looks drawn, not ruled. Per letter, back to front: a flat coral extrusion (#FF7A66, offset 11/13 px), a brush-pen outline in ink #2B1F1A drawn twice (0/0 and 3.5/4.5 px) so the stroke is heavier on the shadow side, then the body #FFFDF6 on an offscreen layer where the liquid, bubbles, marker-gloss highlights and the shine are composited source-atop, so they never leave the letter. Lemonade #FFC62E with a deeper tone near the bottom and a bright meniscus line #FFE27A. Light comes from the top left everywhere: highlights top left, extrusion and heavy outline bottom right, flat contact shadows under everything. The lemon slice (r 62, nearly one and a half times the i stem) is seen slightly from the front: an elliptic face (0.84) over a visible rind edge, a cream pith ring, eight yellow segments with a light juice streak each, separated by wide pith lines, the same coral extrusion. A red-and-white striped paper straw hangs from the top at the loop point. Wordmark centred at x 491 (clear of the right-hand social UI), baseline y 1110, tagline in Instrument Serif 66 px under it. Banned: real brands, confetti, glows, gradients for their own sake, line boil on resting shapes.

STORYBOARD
0–0.56 Hook: the camera sits close (2.1×) on a big drop that has just left the straw (a last bead still clings to its opening), its shadow on the ground below. The drop falls with a trailing tip and speed stretch while the camera pulls back to the wide shot and the straw slides out of frame; on impact the drop flattens into the ground and loses its tip, four droplets fly on the same gravity and fall back, four ink impact strokes shoot out and retract, a puddle spreads to 900 px.
0.56–1.85 Each letter is one ballistic arc that starts fully below the ground line: it shoots out of the puddle (clipped at the surface), stretches with its speed, tilts a few degrees in the air and lands with a contact squash. Order i, z, f, z. The puddle drains into them. Tagline wipes on (1.5–2.05).
1.85–3.3 The dotless i crouches, hops 130 px, lands tilted on its corner, tips into the first z (pivot on the bottom-right corner, drawn behind it); the z gives 6.5°, the second z 2.6° a beat later, the z pushes the i back past upright, the f leans in 4.5° and catches it, the i settles critically damped.
3.3–5.05 Lemonade rises in every letter, left to right, staggered 0.08 s, to 85–90 %: a travelling double sine wave while it rises, then a decaying slosh (tilt × cos) settling to a gentle ripple. Bubbles rise through the liquid and fade just under the surface. 4.5–5.05 a double shine band sweeps across.
5.05–8 A bubble climbs the i and pops; the lemon slice springs out of the i on the same gravity, spinning, grows from 34 % to full size and lands as the dot, slightly to the right of the stem, with a squash and three small impact strokes, then sways ±5°. 6.82 the tagline wipes out, the letters inhale, the puddle spreads again and the letters are slurped back into it, i first; the lemon drops through the gap and is pulled into the centre; the puddle contracts and the drop shoots up out of it while the camera closes in again and the straw comes down, so it decelerates into the apex of t = 8 = t = 0.

MOTION
One gravity (3,616 px/s²) for the drop, droplets, letters and lemon, so every arc agrees. Squash & stretch preserves area (sx = 1/√sy); stretch follows speed, landing squash is a pulse w·τ·e^(1−w·τ) so it rises and returns without overshoot; recoveries are critically damped. The drop's height is one parabola around t = 0, so the loop seam is a physical apex. Camera zoom and straw are functions of |τ| (time from the apex) with zero slope at τ = 0, so the seam stays a still apex. ?lang=de|en switches the tagline.

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 8, plus every 0.02–0.05 s across 0.45–0.8 and 6.85–7.6, and every 0.1 s across 1.8–3.2 and 4.5–5.9.

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 of lemonade leaves a straw and falls, the letters of “fizz” jump out of the puddle, the i stumbles and is caught, lemonade fills the lettering and a lemon slice lands as the dot on the i. Then the puddle pulls everything back into the drop. 8 seconds, 9:16, built as code — with a prompt to recreate it.

What I learned building it

A loop only feels seamless when the seam is a physical moment: at t = 0 the drop sits at the apex of its parabola, so position and speed match by themselves. And squash & stretch stops popping once the landing squash is a pulse that starts at zero and returns without overshoot, instead of being switched on.

Inspiration

The model was a video by @kotsarevm ((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