Polish motion and timing
You wrote the timeline, so you know what happens; the viewer sees it once, at full speed, often on a phone. Polish is seeing it as they will, and changing numbers you have measured. Start from a film that already passes npx hyperframes check --json with 0 errors.
Every round delivers
- A draft render:
npx hyperframes render --quality draft -o renders/rN.mp4. - A one-frame-a-second contact sheet:
bash scripts/sheet.sh renders/rN.mp4 review/rN-sheet.png. - If there is a reference film, the same beats side by side, reference left:
bash scripts/cmp-ref.sh renders/rN.mp4 ref.mp4 beats.txt review/rN-cmp.png(beats.txt: oneour_s ref_spair a line, 12 to 14 pairs, frozen after round one). - Frame strips at 10 to 30 fps around each action:
bash scripts/strip.sh renders/rN.mp4 3.8 4.6 20 review/rN-click.png. Exact instants on lossless frames:npx hyperframes snapshot --at 3.9,4.1. REVIEW.md: one line per change,t=4.2s · where · was → now, and what this round left for a later one.
One kind of problem per round, in this order. Note the others and leave them for their round. Keep the best render of the last round; merge into it only what got better.
Round 1: weight and easing
- Write one sentence per action: who moves, what it wants, how hard, where it lands, how it feels ("Send pushes the line into the queue, firm and a little urgent"). No sentence, no curve will save it.
- A forceful move runs prepare → anticipate (a little the other way) → drive → impact → brake → settle. Overshoot, stretch and blur live only near drive and impact.
- Layer by importance: the product action moves first, then the camera, then type, then secondary UI, 2 to 6 frames later (70 to 200 ms at 30 fps), and stops a little later too. Decoration never leads.
- Ease by role: arrivals land on a long tail (settle
cubic-bezier(0.22, 1, 0.36, 1), orexpo.out); camera pushes ease both ways (cubic-bezier(0.7, 0, 0.2, 1)over 0.6 to 0.7 s); exits accelerate and are 40 to 50% shorter than their entrances. Onepower2.outat 0.5 s on everything is the flat default that reads as generated. - Springs by damping ratio ζ: 1.0 never bounces, 0.7 to 0.85 reads premium, 0.4 to 0.6 playful. Position and scale may bounce; opacity and colour never do. Starting values: controls ω 18 ζ 0.75; cards and camera ω 12 ζ 0.9; big type and logos ω 7 ζ 1; a landing mark ζ 0.75 to 0.78.
- Keep springs as pure functions of time, so any frame renders on its own:
jsconst springEase = (z, w, dur) => { const f = t => { if (z >= 1) return 1 - (1 + w * t) * Math.exp(-w * t); const wd = w * Math.sqrt(1 - z * z); return 1 - Math.exp(-z * w * t) * (Math.cos(wd * t) + (z * w / wd) * Math.sin(wd * t)); }; const end = f(dur); return p => (p >= 1 ? 1 : f(p * dur) / end); };
- Convert library springs:
bounce b, duration d→ ζ = 1 − b, ω = 2π / d;stiffness k, damping c, mass m→ ω = √(k/m), ζ = c / (2√(km)). - Overlap: the next element starts when the last is 30 to 50% done; staggers are letters a frame apart, words 60 to 120 ms, list items 40 to 80 ms. Shots hand over with 6 to 12 frames of overlap: the outgoing shot carries the speed, the incoming one the landing.
Round 2: cursor and clicks
- The cursor's position is a function of t only, driven by one proxy tween:
tl.to(state, { t: END, duration: END, ease: "none", onUpdate: draw }, 0)over segments{ t, d, to, arc }. - A move speeds up and slows down,
cubic-bezier(0.45, 0, 0.25, 1.1), overshoots about 3%, and travels an arc 6 to 14% of its length high. The cursor is big: 4 to 7% of the frame. - A click comes 50 to 100 ms after the cursor settles: 70 ms down to scale 0.86, back on a spring ζ 0.5 ω 22 over 0.35 s; the thing clicked answers (large blocks 0.97 to 0.985, small buttons 0.9) and its result starts on the same frame.
- A drag holds 0.86 the whole way, and the dragged thing shares the cursor's curve and clock. On release it slides 20 to 30 px with about 3% inertia.
- The cursor never parks on text that just appeared, on the button it is about to press, or on the line being typed: it parks beside them.
- Measure the rendered trail, never the code: render once with the cursor tinted
#00ff00and read each frame's green pixels for its stops and coordinates.
Round 3: holds and hand-offs
- A line holds 0.5 s plus 0.3 s a word; a result 1.0 to 1.35 s; the story's landing at least 1.3 s; the finished end mark at least 1.2 s. A pushed-in cover holds 0.3 s before the next page.
- Anything held over about 2.5 s that is not a playing video drags; something new every 2 to 4 s.
- Every hand-off carries one object into the next scene, caused by something on screen (a click, a drag); never a crossfade between worlds. Use 3 to 5 kinds of transition in a film, at most a third of them hard cuts.
- Adding holds shifts every later time: run t through a
warp(t)that inserts freezes at settled moments instead of editing every constant. - A landed title is dead still. Typing in a hero film is even, 44 ms a character, each character rising 6 px out of a 4 px blur in 0.2 s; the words typed are the next scene's title.
Checks that prove it
- Three rounds, each with its render, contact sheet, strips, comparison and
REVIEW.mdlines. - Phone: scale the beat frames to 390 px wide and read them at 1:1; every line that carries a beat is still readable (34 px or more in a 1080 master).
- The end: read the last frames one by one at 10 fps; no frame shows a partial mark. Prove the end hold with
bash scripts/hold.sh <film> <seconds>(every frame in that window within 45 dB of the last), not freezedetect: a wipe still settling by a few pixels passed freezedetect at 2.0 s and failed the probe by 0.05 s, so give the end 0.1 s more than its rule. - Centring: measure ink on lossless snapshots, not on the encoded MP4; each key line's ink centre within 1 px of the frame centre.
- One independent review after round 3: a fresh agent sees only
SPEC.md, the contact sheet and the end strip and writes P0/P1 lines; check each claim on frames before acting, and write which you took and why you left the rest.
Pitfalls we hit
- A camera push on a settle curve arrived in 3 to 4 frames, then crept → in-out curve over 0.6 to 0.7 s.
- Pages rose without weight → position on a spring ζ 0.8, opacity on its own curve, 60 ms stagger.
- Cards flew on one clock → stagger 0 / 40 / 80 ms.
- Four cards flew separately into a panel → the whole strip shrinks into its grid in one move.
- The logo filled in 2 frames → a 0.7 s spring with about 3% overshoot.
- The cursor started at full speed in a straight line → ease in and out, arc, 3% overshoot.
- A segment bug made the cursor arrive early and the code looked fine → measure the rendered trail every round.
- It clicked while still moving → click after it settles.
- A pushed-in cover flipped after 0.05 s → hold 0.3 s.
- The end mark held 1.1 s → 1.7 to 1.8 s.
- Fades on the end card left grey in-between frames → wipes and instant swaps, no opacity on the mark.
- A cursor turning into the logo ghosted with both shapes on one frame → last pressed frame plain, next frame the logo.
- Spotlights and dimming to point at text looked cheap → keep the text still and complete; move only what really moves.
- A screenshot looked off-centre but measured fine the other way → measure before you move anything.
- Review rounds that never end → three rounds plus one independent pass; a reviewer can contradict itself, so its notes are input, not orders.
See example.md for three rounds on one film.
Based on heygen-com/hyperframes (Apache-2.0), rewritten by Copybook.


