Motion Graphics Studio
Overview
Build motion graphics as code: a canvas page whose every frame is a function of time, rendered frame by frame to 4K. Pro results come from structure (brief → story spine → beat sheet → transforming transitions → review loop), not from effects. The effects are a library you pick from once the structure exists.
Core principle: every shot becomes the next one. Plan the beats first, then choose moves, then finish with motion blur and a frame-by-frame review.
When to Use
- Any short animated video: reel, launch, app promo, sting, explainer, announcement, capability menu, case study
- "Make it like this video", "recreate this reference", "make it look professional"
- Not for editing real footage or talking heads. Use this only for the graphic layers on top.
Workflow
- Brief. Settle the goal, audience, platform and aspect, length, real brand assets and true claims. Design the ending (CTA) first. See
references/motion-grammar.md§1. - Archetype. Pick the closest beat sheet in
references/video-archetypes.md(showreel, SaaS launch, app promo, logo sting, stat explainer, announcement, services menu, case study). - Beat sheet. Write a table (time, beat, visual, in, hold, out → becomes, sound) using the story spine: hook → identity → proof → product → payoff. Get it approved before coding.
- Build. Copy
template/(reel-template.html + logo.js) andengine/. Fill theBRANDblock, set the beat times inBand the pace inSLOW, and write or adapt one function per scene usingreferences/motion-library.md. Makelogo.jswithtools/svg_to_logo.py; never redraw a logo. - Review.
node tools/render.mjs stills page.html out/s <times…>, thenpython tools/contact_sheet.py out/s sheet.jpg. Check every beat and 3–4 points inside each transition. When matching a reference, sample it at 8 fps and compare at the same times. - Render. 1080p first, then 4K:
node tools/render.mjs video page.html out.mp4 --fps 25 --scale 2. Keep the computer awake. - Sound. Only once the picture is locked:
render.mjs events→ place hits, whooshes and clicks on the beats.
Quick Reference
| Need | Where |
|---|---|
| How to structure any piece: story spine, timing, easing, transitions, type, colour, 3D, review, delivery | references/motion-grammar.md |
| A move: entrances, emphasis, exits, transitions, shapes, 3D, particles, data, UI, logo | references/motion-library.md |
| A ready beat sheet per video type | references/video-archetypes.md |
| A full working reel to copy (22s, 12 scenes, motion blur, 3D layers) | template/reel-template.html |
| 3D layers (tilt and perspective for any 2D drawing) | engine/layers3d.js |
| Render, review, logo | tools/render.mjs, tools/contact_sheet.py, tools/svg_to_logo.py |
Rules that make it look professional
- One idea per beat. 3–5 words on screen at most. Something always moves.
- Transitions transform (dot → field, portal, full stop grows, streak, wipe, glitch, zoom-through, burst). No crossfades.
- Ease by intent: outExpo arrives, inOut travels, inCubic leaves or floods, outBack pops. Linear only for loops.
- Fast-fast-slow rhythm. Stagger 0.04–0.09s. Hold text long enough to read.
- Scale contrast: huge heavy words, tiny mono details, plus a slate HUD.
- Motion blur on everything fast (6 sub-frames over a 180° shutter).
- Only true claims and real numbers. Your own brand assets. Copy a reference's grammar, never its assets.
Common Mistakes
| Symptom | Fix |
|---|---|
| "Doesn't look pro" | Not a speed problem. Re-plan the beats, make every transition a transformation, add motion blur, then compare at 8 fps |
| Reference details missed | You sampled at 2 fps. Use 8 fps contact sheets |
| Layer edges show during a flood | Floods and full-frame fills go on toOver() or the frame, never on a tilted layer |
| Shape morph has a seam | Morph between normalised radius arrays, not between formula parameters |
| 3D seen from below | The pitch sign is wrong: y2 = y*cos p + z*sin p, z2 = -y*sin p + z*cos p |
| Frames differ between renders | You used Math.random(). Use the seeded rng(seed) |
| Page never starts | Syntax error or a duplicate const. Run node --check on the extracted script |
| Render stuck at frame 0 | The machine slept. Kill the stale processes, keep it awake, re-run |