motion-formulas
Skill0 starsChanged 3 months agoMITView on GitHub
Twelve motion formulas for choosing what to move and how when building signature graphics and motion graphics. Offset, overshoot, pendulum, spring, bounce, squash and stretch, pattern, reaction, match cut, plus three text treatments: soft, 3D, and assembly. All verified with GSAP and CSS transforms through rendering. No new tools or costs. Applies to every channel.
In this repository6 other files it gives its agents.
- diagnosing-bugsSkill
- grill-meSkill
- grill-with-docsSkill
- qcSkill
- quiet-renderSkill
- release-gateSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
All easing formulas are in /hyperframes-animation.
- Distinctive: line 95
If it skims, fix the script, not the motion.
- Very specific: line 146
All twelve formulas are in reference/snippets.md.
- Very specific: line 198
Add data-layout-allow-overlap to intentional overlaps such as extrusion layers.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Twelve motion formulas — the house recipe
This skill answers “what should move?” rather than merely “how do I animate it?” The tools already exist. The recurring problem is thinking of only one way to reveal something.
🔴 Why this exists
One project contained eight signature graphics, yet the owner judged all of them unusable. The count exposed the cause:
| Strong project | Rejected project | |
| Mask reveals | 22 | 0 |
| Share using opacity | 41% | 66% |
| Tween count | 10–41 | 109 |
There were 2.7 times as many tweens, but the result felt flatter because it was built from fades. If every reveal works the same way, every screen looks the same no matter how many you make. That is the precise meaning of “it looks like a slide deck.” These formulas expand the reveal vocabulary to twelve methods.
0. 🔴 A formula is tool-independent
reference/snippets.md provides a GSAP + CSS transform implementation. Some desks burn frames directly with PIL and ffmpeg, so they cannot paste JavaScript. A formula describes what to transform and how, not a specific library.
| Formula | What an implementation needs |
| 1 Offset | Start element i at i × 0.07 seconds |
| 2 Overshoot | Pass the target, then return; implement back.out |
| 3 Pendulum | Reduce angle and duration together over five stages |
| 4 Spring | Damped sine wave (elastic) |
| 5 Bounce | Damped reflection (bounce) |
| 6 Squash | Preserve scaleY × scaleX ≈ 1 on every frame |
| 7 Pattern | Repeat the same item at rotations of i × (360/n) |
| 8 Reaction | Preserve the order core → rays |
| 9 Match cut | Interpolate silhouette: aspect ratio and corner radius |
| 10–12 Text | Block scale / layered offset / target-coordinate interpolation |
All easing formulas are in /hyperframes-animation. They translate directly to Python:
def back_out(t, s=1.9): t -= 1; return t*t*((s+1)*t + s) + 1
def bounce_out(t):
if t < 1/2.75: return 7.5625*t*t
if t < 2/2.75: t -= 1.5/2.75; return 7.5625*t*t + .75
if t < 2.5/2.75: t -= 2.25/2.75; return 7.5625*t*t + .9375
t -= 2.625/2.75; return 7.5625*t*t + .9843751. Choose by use case, not by name
| # | Formula | Use it when | Core idea |
| 1 | Offset | Listing several items, bars, or entries | Rhythm from timing alone; 0.06–0.09 second stagger |
| 2 | Overshoot | Something arrives | Pass the target, then return; back.out |
| 3 | Pendulum | Something is suspended or heavy | Damped swing in five stages with decreasing angles |
| 4 | Spring | Emphasis or a popping entrance | Compress, then spring out; elastic.out |
| 5 | Bounce | Falling or gravity | One bounce.out |
| 6 | Squash and stretch | Fast travel or impact | Preserve volume: taller means narrower |
| 7 | Pattern | Background, ambience, stable repetition | Repeat one item at different angles |
| 8 | Reaction | Cause → effect | The core grows, then energy spreads outward |
| 9 | Match cut | Connecting cuts | One shape continues into another |
| 10 | Soft text | Text emphasis | Compress and release the text block |
| 11 | 3D text | Heading or title | Layered extrusion plus rotationY |
| 12 | Assembly text | Scattered items becoming organized | Individual characters find their places |
🔴 Combine at least three different formulas in one signature. Repeating one formula is equivalent to repeating opacity.
⛔ Tone-specific restrictions
| Tone | Guidance |
| Calm documentary or heritage | Do not use the bounce of 2 Overshoot or 4 Spring. It reads as cheap in a calm tone. Prefer 1, 3, 7, 9, and 12. |
| Product and information | Bounce is recommended. Characters and products benefit from tactile motion. |
| International | Move two to five props per cut; apply formulas to the props. |
| Social still image | Only 11 and 12 apply. |
1-2. ⛔ Motion is not always the answer
In one product project, the piece that actually sold had zero motion graphics. Its script carried one incident through five sentences, included a witness reaction, and returned to that incident at the end. Recent pieces with seven motion types instead toured a different feature in every sentence and did not sell.
🔴 Motion can present a sound script more clearly; it cannot make an unsound script stand. Before opening these formulas, answer:
“Does this piece tell one story, or does it skim several things?”
If it skims, fix the script, not the motion. Adding twelve formulas merely changes “only one reveal method” into “flashy but empty.”
1-3. 🔴 Static density comes before motion
Twelve motion types cannot rescue a weak still frame. Two desks measured independently and reached the same conclusion.
Information-video measurement: six revisions to one cut
| Added | Score | Result |
| Baseline shapes, grid, and stamp | 3 | |
| + Real table data, icons, badge, progress bar | 4 | Density complaint disappeared |
| + Larger cards, overlap fixed, spacing adjusted | 6 | 🔴 Largest gain |
| + Texture, lighting, floor reflection, dimensional badge | 6 | No gain |
| + Cursor and click ring | 7 ✅ | “No interaction” complaint disappeared |
| + Bezel, perspective, mini-chart, noise, HUD chips | 4–6 | 🔴 More elements lowered the score |
Documentary-style measurement: compared with owner response
| Project group | Font bundle | Serif 900 | Shadows | Owner |
| Three well-received projects | 100% | High | 3–14 | 👍 |
| Ordinary project | 0/8 | 5/8 | 21 (most) | Ordinary |
| Rejected project | 0/8 | 1/8 | 15 | 🔴 Unusable |
Both sets point to the same conclusion:
- Shadows, gradients, dimensional gloss, and noise have low value. They added zero points in the information test, and the documentary project with the most shadows was not liked.
- Broken basics such as overlap, clipping, or font fallback cost much more than missing ornament.
- Adding more does not keep raising the score. Beyond a point, it lowers it.
Single-cut checklist — use this order
| Rank | Check | Why |
| 1 | Text does not overlap or clip | The top issue in both desks. hyperframes check reports content_overlap. |
| 2 | The font file is actually present | Calling a family name alone silently falls back. Sixteen signature graphics did this in one project. |
| 3 | The largest text uses weight 900 (Black) | A 300 px numeral at weight 400 lacks force. |
| 4 | At least three supporting details | A lone number is only shape placement. Add label, unit, source, or badge. |
| 5 | Treat source material as source material | Give an artifact or document a frame, nameplate, or source number; it is not wallpaper. One praised project used only two signature types but framed sources 18 times. |
| 6 | Signal that somebody is operating it (only for screen/UI reconstruction) | Cursor and click ring make the image read as a real interface more effectively than texture. |
| ⛔ | Add more shadow, gloss, or noise | Only after 1–5 are complete. Ornament cannot substitute for them. |
⚠️ Do not make the score a gate. Gemini (the agy command) has rated the same image from 3 to 7. It has also mistaken a watermark for channel graphics. Use only concrete findings about what is missing.
2. Paste-ready code
All twelve formulas are in reference/snippets.md. reference/formulas.html is the verified build with all twelve moving on one screen. Open it, choose visually, and take only the needed piece.
python "%USERPROFILE%/.claude/skills/quiet-render/scripts/quiet_render.py" <folder> render --quality draft --approve3. 🔴🔴 Three silent failure modes
① Chaining .to() without a position appends at the end of the timeline
T.to("#a",{...},0.3).to("#a",{...});
T.to("#b",{...},0.5).to("#b",{...});With twelve motions, later tweens can move beyond the video and never appear. We observed a spring remaining compressed, rays never appearing, and text never compressing. 🔴 hyperframes check still passed this with zero motion errors. You must render and inspect frames.
✅ Create an independent timeline for each motion and add it at its start time.
var tSp = gsap.timeline();
tSp.to("#sp",{...}).to("#sp",{...});
T.add(tSp, 0.3);② Copy fonts into the project; the checker rejects ../
✗ Use plain root-relative paths — compositions are served with the project root as base URLmkdir <project>/fonts && cp <font-source>/*.ttf <project>/fonts/
@font-face{font-family:"SerifKR";src:url("fonts/NotoSerifKR-VF.ttf")format("truetype");font-weight:100 900}🔴 Naming a font without providing the file silently renders with a fallback. Sixteen signature graphics in one project did this, contributing heavily to their rejection.
③ Four boilerplate items are required
<div id="stage" data-composition-id="main" data-start="0" data-duration="3.2"
data-width="1080" data-height="1920">window.__timelines = window.__timelines || {};
window.__timelines['main'] = T;Add data-layout-allow-overlap to intentional overlaps such as extrusion layers.
4. Verification — passing is not completion
1) python .../quiet_render.py <folder> check # Confirm exit code 0
2) python .../quiet_render.py <folder> render --quality draft --approve
3) Extract frames and measure frame-to-frame change by cell # Numbers, not eyesStep 3 is essential; it found the timeline bug above.
# Mean brightness difference by region; below 0.8 means that area did not move.
d = abs(arr[t+1][y:y+h, x:x+w] - arr[t][y:y+h, x:x+w]).mean()Measured passing range for all twelve formulas: 2.5–17.9.
Tool — reference/check_motion_energy.py
python check_motion_energy.py <cut-folder> # HyperFrames project
python check_motion_energy.py <final.mp4> # Only ffmpeg required; PIL pipelines work tooIt samples 12 frames and reports the maximum consecutive-frame brightness difference for each cell in a 4×3 grid. Cell <0.8 means dead; average <1.5 means failure.
🔴 Run it on one cut or a 10–20 second segment only. On a nine-minute final video the average can reach 229 because it measures cut transitions, not motion within a cut.
⛔ Slow drift is equivalent to no motion. Scaling from 1.03 → 1.10 over nine seconds can produce a per-frame difference of zero. For photo cuts, the floor is 5–6% per second; for element-entry offsets, 0.15–0.3 seconds.
5. When you need more depth
- Runtime APIs, easing lists, and 24 text effects →
/hyperframes-animation - Composition contract and subcompositions →
/hyperframes-core - Render and preview commands →
/hyperframes-cli; quiet execution →/quiet-render - 🔴 Starting and stopping preview are one operation. Leaving it running can make the black window pile up on the owner’s screen.
6. Source
These formulas were derived by studying 85 publicly visible example GIFs from a motion-design course page. The course was not purchased or copied. Only the formula names and motion ideas were identified, then every example was reimplemented from scratch with our tools (GSAP + CSS transforms) and verified by rendering. After Effects is not used.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

