agentleFS
youraiofficeyouraioffice/your-ai-office-tools/motion-formulas/SKILL.md

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.

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
  1. Very specific:

    All easing formulas are in /hyperframes-animation.

    line 46
  2. Distinctive:

    If it skims, fix the script, not the motion.

    line 95
  3. Very specific:

    All twelve formulas are in reference/snippets.md.

    line 146
  4. Very specific:

    Add data-layout-allow-overlap to intentional overlaps such as extrusion layers.

    line 198

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 projectRejected project
Mask reveals220
Share using opacity41%66%
Tween count10–41109

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.

FormulaWhat an implementation needs
1 OffsetStart element i at i × 0.07 seconds
2 OvershootPass the target, then return; implement back.out
3 PendulumReduce angle and duration together over five stages
4 SpringDamped sine wave (elastic)
5 BounceDamped reflection (bounce)
6 SquashPreserve scaleY × scaleX ≈ 1 on every frame
7 PatternRepeat the same item at rotations of i × (360/n)
8 ReactionPreserve the order core → rays
9 Match cutInterpolate silhouette: aspect ratio and corner radius
10–12 TextBlock 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 + .984375

1. Choose by use case, not by name

#FormulaUse it whenCore idea
1OffsetListing several items, bars, or entriesRhythm from timing alone; 0.06–0.09 second stagger
2OvershootSomething arrivesPass the target, then return; back.out
3PendulumSomething is suspended or heavyDamped swing in five stages with decreasing angles
4SpringEmphasis or a popping entranceCompress, then spring out; elastic.out
5BounceFalling or gravityOne bounce.out
6Squash and stretchFast travel or impactPreserve volume: taller means narrower
7PatternBackground, ambience, stable repetitionRepeat one item at different angles
8ReactionCause → effectThe core grows, then energy spreads outward
9Match cutConnecting cutsOne shape continues into another
10Soft textText emphasisCompress and release the text block
113D textHeading or titleLayered extrusion plus rotationY
12Assembly textScattered items becoming organizedIndividual characters find their places

🔴 Combine at least three different formulas in one signature. Repeating one formula is equivalent to repeating opacity.

⛔ Tone-specific restrictions

ToneGuidance
Calm documentary or heritageDo 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 informationBounce is recommended. Characters and products benefit from tactile motion.
InternationalMove two to five props per cut; apply formulas to the props.
Social still imageOnly 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

AddedScoreResult
Baseline shapes, grid, and stamp3
+ Real table data, icons, badge, progress bar4Density complaint disappeared
+ Larger cards, overlap fixed, spacing adjusted6🔴 Largest gain
+ Texture, lighting, floor reflection, dimensional badge6No gain
+ Cursor and click ring7 ✅“No interaction” complaint disappeared
+ Bezel, perspective, mini-chart, noise, HUD chips4–6🔴 More elements lowered the score

Documentary-style measurement: compared with owner response

Project groupFont bundleSerif 900ShadowsOwner
Three well-received projects100%High3–14👍
Ordinary project0/85/821 (most)Ordinary
Rejected project0/81/815🔴 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

RankCheckWhy
1Text does not overlap or clipThe top issue in both desks. hyperframes check reports content_overlap.
2The font file is actually presentCalling a family name alone silently falls back. Sixteen signature graphics did this in one project.
3The largest text uses weight 900 (Black)A 300 px numeral at weight 400 lacks force.
4At least three supporting detailsA lone number is only shape placement. Add label, unit, source, or badge.
5Treat source material as source materialGive 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.
6Signal 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 noiseOnly 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 --approve

3. 🔴🔴 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 URL
mkdir <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 eyes

Step 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 too

It 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.