All motions

Shard logo reveal

A 3D product reveal: blueprint, shards out of depth, glass icon

Created with AI
  1. 0–1.7 s the camera hangs tilted over a blueprint; guide lines, dimensions and outlines draw on
  2. 1.7–4.4 s around 100 shards fly in out of depth and land with a glint
  3. 4.1–5.7 s the facets flatten, the icon rises behind them, the camera whips square
  4. 5.45–7.6 s a light sweep across the icon, a shock ring through the grid, the name rises letter by letter
  5. 7.6–11 s hold, then the icon flips away and the camera swings back to the blueprint
  • Logo reveal
  • 11 s Loop
  • 1080² · 30 fps
  • Canvas 2D
  • 1.7 MB

Prompt

English · for Claude Code, Codex & co. · 753 words
Build an 11-second looping logo reveal for my logo, shot like a product reveal: a camera looks across a blueprint plane while the mark is drawn, assembled from shards out of depth, set into a glass app icon, and signed with the name.

LOGO
[Paste the SVG paths of your logo here — letters as filled paths, plus any accent shape.]
Brand name: "[Your Name]".

DESIGN
Deep steel #0E1117 with a grey light behind the subject and a vignette to #08090C. A real perspective camera (focal length ~1250 px): the mark lives on a plane at z = 0, a blueprint grid (72-unit lines, small cross marks every 4th intersection) on a second plane 640 units behind it. Construction lines and labels in bright kobalt #7B95EE, letters cream #F2EFE8. App icon: an extruded slab with iOS-style smooth corners, front kobalt #2A49B8 → #18318A → #0B1850, darker lit side walls, a glass reflection band in the upper half, a rim highlight top-left, a soft contact shadow. Accent shape in #7B95EE with a clear gap cut into the letters. Name: Geist 600, huge (~220 px on 1080), tracking −0.045 em; caption in Geist Mono, uppercase, widely tracked, between two short kobalt rules. One key light from the upper left front for everything. Banned: lens flares, coloured glows, particle confetti, bouncy easing.

STORYBOARD
0.0–1.7 Blueprint: the camera starts tilted (~29° yaw, ~18° pitch) and pushes in slowly through the whole build. Guide lines (baseline, cap height, centre lines) shoot across the plane — the first ones already start before the loop point. Construction circles sweep in, small mono dimension labels appear (R 18, R 8, Ø 12, 113 × 72, 0,0), and the letter outlines draw on in thin cream strokes, each led by a white pen point with a short kobalt tail; square anchor points pop as it passes.
1.7–2.2 The triangulation mesh flashes in from left to right.
2.15–4.4 Shards: ~100 triangles (ear clipping, counters as holes, Delaunay flips) fly in out of depth from in front of the plane, tumbling around random 3D axes, in a diagonal wave whose gaps get shorter. They land on critically damped springs. Lambert + Blinn-Phong shading from the key light: cream fronts, deep kobalt backs, a white glint the moment each shard lands; landed facets keep a slight random tilt so they sparkle as the camera drifts.
4.1–5.0 A left-to-right wave flattens the facets into solid letters. The icon slab rises out of depth behind the mark while the mark shrinks into it; its side walls catch the light.
5.05–5.7 Whip: the camera snaps square on a fast critically damped spring, motion-blurred. 5.4 the accent shape pops into its gap. 5.45 lock: one crisp light band sweeps diagonally across the icon, and a short shock ring runs out through the background grid, brightening the lines and cross marks it crosses.
6.4–7.6 The icon shrinks and moves up; the name rises letter by letter out of a mask at the baseline while its tracking closes in; the caption follows with its rules drawing out from the centre.
7.6–9.1 Hold under a slow camera push-in.
9.1–11.0 The letters drop back into the mask, the icon flips edge-on and vanishes, the camera swings back to its tilted start as the first guide lines shoot across again.

MOTION
Critically damped springs 1 − (1 + w·t)·e^(−w·t), w 7–22, plus exponential easing; nothing overshoots. Motion blur by averaging 6–8 whole-frame samples across a half-frame shutter whenever things move fast (shards, whip, flip); apply the vignette once after averaging.

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.6, 3.2, 4.0, 5.1, 5.7, 5.85, 7.2, 8.4, 9.55, 11.

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 logo reveal shot like a product launch: the camera hangs over a blueprint, around 100 shards fly in out of depth, the icon locks with a light sweep and a shock ring, then the name rises. 11 seconds, built as code — with a prompt to recreate it.

What I learned building it

Hairline seams appear between the triangles unless they overlap by half a pixel. And the ending has to lead back to the start, or the loop stutters.

Inspiration

The starting point was a prompt by @Mounnna ((opens in a new tab)) on Skillry. You'll find the original wording there; the prompt above is my own version.

In depth in the blog article

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