All motions

From noise to a workflow

Particle morph: 8,000 points become mail, a date, a check and a name

Created with AI
  1. 0–2.5 s a swirling cloud of points, then they line up left to right into an envelope
  2. 3.9–5.5 s the envelope dissolves into a stream that pours through a funnel into a calendar page
  3. 6.8–7.9 s the calendar tips edge-on and the check mark tips in from the other side
  4. 8.9–10.6 s the check runs out as a wave across the frame and settles into the word Paul
  5. 12.2–14 s the name bursts open from the centre and the points return to the opening cloud
  • Particles
  • 14 s Loop
  • 1080² · 30 fps
  • Canvas 2D
  • 4.8 MB

Prompt

English · for Claude Code, Codex & co. · 875 words
Build a 14-second looping particle morph, 1080×1080: 8,000 points in a real 3D field turn from noise into a workflow and back — noise → envelope → calendar page → check mark → the word "Paul". The "particles form shapes" format: every hold is a clean, readable icon; every transition is a different kind of flight.

SHAPES
Sample every target from an offscreen 1080 canvas: draw the shape, collect the opaque pixels, shuffle them and hand one to each particle (reuse with sub-pixel jitter if there are fewer pixels than particles). Pixels drawn in blue are flagged as accent. Give every target a random depth (±26–44 units) so the shapes are extruded slabs and the slow camera rotation shows real volume. Sort every target list by x (plus a little noise) and give particle i target i in every shape, so flights run in an orderly order instead of crossing at random.
- Envelope: rounded rectangle 580 × 380 (stroke 17), flap V in accent (stroke 12), two thin fold lines.
- Calendar: rounded rectangle 510 × 470, header rule, two ring stems, a 4 × 3 grid of outlined day tiles, one day filled in accent.
- Check: a thin accent ring (r 268, stroke 11) around a heavy round-capped check (stroke 66).
- Name: "Paul" in Geist 700, 318 px, tracking −14 px; under it "AUTOMATION & AI" in Geist Mono 800, 58 px, tracking 8 px, accent — accent pixels weighted ×4.2, sampled at a shallower depth (±7), drawn with finer points and breathing at a third, so the line reads clearly as a point cloud.
- Noise: the same 8,000 points in a flat ellipsoid (620 × 430 × 420), ~15 % of them accent, the whole cloud turning once per loop around the vertical axis while crossed sine fields swirl it (coherent eddies, not random jitter).

TIMELINE
0–0.85 noise · 0.85–2.45 noise → envelope, a left-to-right wave (stagger 0.6 s by target x), each particle swirling on the way · 2.45–3.85 hold · 3.85–5.45 envelope → calendar as a stream: every path is a quadratic curve through one narrow funnel 560 px above the centre, so the particles leave the envelope left to right and pour back down as a ribbon · 5.45–6.75 hold · 6.75–7.85 the calendar tips edge-on around the vertical axis and the check tips in from the other side (a card flip with a slight fan-out) · 7.85–8.85 hold · 8.85–10.6 the check unravels into a travelling sine wave across the full width, then the wave settles into "Paul" from left to right · 10.6–12.15 hold · 12.15–13.4 burst: from the centre outwards each particle flies out along its radial direction and curves back into the noise cloud · 13.4–14 noise = frame 0.
Holds breathe (≤ 1.6 px) and every arrival ends in a short flicker (3 px, decaying within ~0.4 s).

DESIGN
Steel #0E1117, a soft grey light behind the subject, a vignette to #08090C. Particles cream #F2EFE8, accent kobalt #7B95EE; a particle switches colour halfway through its flight. Size 1.35–2.45 px times the perspective factor; farther points draw fainter. Batch all particles into 24 paths (colour × 4 sizes × 3 opacities) and stroke each once — overlaps inside one path don't add up, so dense areas never burn out to white. HUD in Geist Mono: "PARTICLE MORPH" / "8,000 PTS" top, timecode and camera angle under them; bottom centre the stage name rolling up out of a mask (00 NOISE, 01 INBOX, 02 SCHEDULE, 03 DONE, 04 PAUL) above four progress dashes. Banned: additive glow, lens flares, colour gradients, confetti.

CAMERA & MOTION
Perspective camera (focal 1400) with a slow loop-safe yaw (±17°), a little pitch and a dolly that is closest on the name. Flights land on critically damped springs normalised to exactly 1; the stream and the burst blend a smootherstep into the spring. Motion blur: draw each moving particle as a line from its position 0.024 s earlier to now (butt caps, capped at 50 px), and drop long streaks one opacity step so the light spreads like a real shutter; slow particles stay dots. Every time frequency is an integer multiple of 2π/14 s — one stray factor and the loop tears.

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, 1.7, 2.6, 4.4, 6.2, 7.15, 8.4, 9.5, 10.2, 11.4, 12.5, 13.0, 14.

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

8,000 points in a real 3D field: noise turns into an envelope that streams into a calendar page, the page tips over into a check mark, the check unravels into a wave and becomes the name. 14 seconds, built as code — with a prompt to recreate it.

What I learned building it

Whether a particle morph looks orderly or random comes down to assignment: sort every target shape by x and the points fly in rows instead of criss-crossing. And every frequency has to be a whole multiple of the loop length — one factor of 1.5 made the seam visible straight away.

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