motion-primitives

motion-primitives is a cursor rule for Cursor from taotao135791-bit/gsap-transform. It costs 72 tokens per session (372 once invoked), scanned A, original, MIT.

A set of 16 named animation actions for GSAP, a JavaScript animation library. Each action gives an animation a consistent shape, such as fading, sliding, revealing, or looping.

In plain words
What is it for?
Use it to describe animation steps in a state file and generate GSAP timelines from them. It covers effects such as fade-ins, text reveals, typewriter text, parallax movement, pulses, shakes, and camera pushes.
Why use it?
It avoids writing low-level GSAP timeline calls by hand, which can lead to inconsistent or error-prone animations. It also provides rules for keeping animations from looking generic.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to describe animation steps in a state file and generate GSAP timelines from them. It covers effects such as fade-ins, text reveals, typewriter text, parallax movement, pulses, shakes, and camera pushes.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/taotao135791-bit/gsap-transform/motion-primitives
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/taotao135791-bit/gsap-transform

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for motion-primitives

README.md
[![agentmods](https://agentmods.dev/badge/rules/taotao135791-bit/gsap-transform/motion-primitives/github.svg)](https://agentmods.dev/rules/taotao135791-bit/gsap-transform/motion-primitives)
Your own site
<a href="https://agentmods.dev/rules/taotao135791-bit/gsap-transform/motion-primitives"><img src="https://agentmods.dev/badge/rules/taotao135791-bit/gsap-transform/motion-primitives/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for motion-primitives

Your own site · 80×15
<a href="https://agentmods.dev/rules/taotao135791-bit/gsap-transform/motion-primitives"><img src="https://agentmods.dev/badge/rules/taotao135791-bit/gsap-transform/motion-primitives.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 372 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.00372
Opus 5.5 $0.00029 $0.00149
Sonnet 5.5 $0.00014 $0.00074
Haiku 4.5 $0.00007 $0.00037

Measured 3mo ago against content hash 1f0ea3139427, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

motion-primitives scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/motion-primitives.mdc · 21 lines

What it actually says

motion-primitives

GSAP is the engine. Primitives are the verbs an agent uses to drive it. Without primitives, the agent has to write raw tl.fromTo(...) calls — error-prone and inconsistent. With them, it writes { primitive: "fadeUp", args: { y: 24 } }.

Catalog (16): fadeUp, fadeIn, scaleIn, slideInLeft, slideInRight, splitReveal, typewriter, scrambleText, morphTo, drawOn, parallaxY, staggerIn, loopPulse, shake, cameraPush, hold.

If the agent is about to call tl.from / tl.to / tl.fromTo directly, stop — use a primitive. If none fits, add one to skills/motion-primitives/{name}.js and export it from index.js.

Adding a primitive also requires:

  1. Adding the name to PRIMITIVE_NAMES in skills/motion-state/runtime.mjs.
  2. A test in tests/motion-primitives/{name}.test.mjs.
  3. Update of PRIMITIVE_NAMES in docs/SPEC.md §3.

For the full contract, plugin requirements, and limitations: see skills/motion-primitives/SKILL.md.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 21 lines · 72 tokens per session scan A 1f0ea3139427

Subscribe to this mod's changes

motion-primitives is a cursor rule published in the GitHub repository taotao135791-bit/gsap-transform (2 stars, last pushed 4mo ago), licensed MIT. It adds 72 tokens to every session and 372 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

motion-primitives compared with cursor rules from other repositories

motion-primitives next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
motion-primitivestaotao135791-bit/gsap-transformCursor rule24mo agoMITA72Cursor
css-stylingConsensys/doc.lineaCursor rule48013d agoApache-2.0A0Cursor
shadcn-tailwind-guidedtyq/magicCursor rule5.1k1mo agononeA13Cursor
codex-premium-website-skillsTheGoat395/Codex-SkillsCursor rule1401mo agoMITA0Cursor
css-render-blocking-diagnosisadobecom/da-express-miloCursor rule6todayApache-2.0A1,102Cursor
z-indexpubky/pubky-appCursor rule28todayMITA0Cursor
csssybrew/troyCursor rule551mo agoMITA0Cursor