animation-system
Skill0 starsChanged 38 days agoMITView on GitHub
Builds a coherent UI motion system - a duration token scale, named easing curves, choreography rules, and a per-component mapping - so every transition in the product draws from one vocabulary instead of ad-hoc values. Use when someone asks "define our motion tokens", "our animations feel inconsistent", "what duration should this modal use", "set up easing standards", or is starting a design system and needs the motion layer. Do NOT use to spec the motion of one specific component or flow - use motion-spec instead; for animated type treatments, use kinetic-typography.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- jame581/GodotPromptertheir own version, first seen Oct 21, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- jame581/GodotPrompter★ 870same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- color-accessibilitySkill
- icon-systemSkill
- prototype-specSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 52
Never animate more than ~5 things independently at once.
- Very specific: line 60
Every motion the system defines must have a reduced-motion path.
- Very specific: line 104
Read the mapping: every exit is one tier faster than or equal to its entrance (the asymmetry rule), nothing exceeds slow except deliberate …
- Distinctive: line 115
Do not exceed ~500ms for anything interactive - sluggishness reads as brokenness.
- Distinctive: line 116
Do not use one symmetric easing everywhere - enter and exit have different jobs and different curves.
- Distinctive: line 117
Do not give exits as much time as entrances.
- Very specific: line 118
Do not animate layout properties (width, height, top, left) - they stutter.
- Distinctive: line 119
Do not ship any motion without a reduced-motion path - it is an accessibility failure, not a polish gap.
- Distinctive: line 120
Do not let components carry inline timing values - every value outside the token set is future drift.
- Distinctive: line 121
Do not keep a motion that has no job (attention, causality, hierarchy, or softening).
- Very specific: line 125
Every duration and curve in the product maps to a named token.
- Distinctive: line 126
Every entrance uses a decelerating curve.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Animation System
Without a motion system, every engineer picks a duration and curve from memory, and the product accumulates dozens of near-identical transitions that read as sloppy even when no single one is wrong. This skill produces the token set and rules that make motion feel like one hand designed it - and prevents the expensive alternative: auditing and re-timing every transition after launch.
Motion must do a job: direct attention, show cause and effect, express hierarchy, or soften a change. A motion that does none of these gets cut - it is latency wearing a costume.
Operating procedure
Durations come before easings, and both come before choreography, because choreography rules reference the tokens.
Step 1: Gather inputs
- Brand feel on a calm↔energetic axis - it shifts the scale ±50ms and decides whether springs are allowed.
- Platforms (web, iOS, Android) and the animation stack (CSS, Framer Motion, native).
- The largest animated surfaces (full-page transitions? sheets?) - they set the slow end of the scale.
- Existing timing values in the codebase, to map onto tokens rather than orphan.
- Token naming convention already in use, so motion tokens match it.
Step 2: Define the duration scale
Small scale, tiered, with each tier tied to element size and travel distance - duration is proportional to distance and size (small/near = fast, large/far = slow):
instant: 0ms - state changes with no transition (checkbox tick).fast: 100ms - hovers, small toggles, color changes.base: 200ms - most component transitions; the default when unsure.slow: 300ms - modals, sheets, page-level transitions.deliberate: 500ms - large or first-run reveals only.
Red line: never exceed ~500ms for interactive feedback - beyond that the UI reads as sluggish, and users start double-clicking. Interactive acknowledgment (the first visible response to input) must land within 100ms even when the full transition is longer.
Step 3: Define easing curves
ease-out-cubic-bezier(0, 0, 0.2, 1)- elements entering: fast start, gentle stop; arrives eagerly.ease-in-cubic-bezier(0.4, 0, 1, 1)- elements exiting: they accelerate away.ease-in-out-cubic-bezier(0.4, 0, 0.2, 1)- elements moving on screen from A to B.spring- playful, physical interactions (drag release, bouncy toggles); only if Step 1 said the brand supports it.
Enter/exit asymmetry is a principle, not a preference: entrances decelerate in and get more time; exits accelerate out and take roughly 20-30% less duration than the matching entrance, because users need to see something arrive but only need to notice it leave.
Step 4: Define choreography rules
- Stagger list items by 20-40ms so they cascade instead of flashing as a block.
- Anchor transitions to their trigger - a menu grows from the button that opened it, showing cause and effect.
- The most important element animates first; supporting elements follow.
- Never animate more than ~5 things independently at once; group the rest into one moving unit.
Step 5: Constrain animatable properties
Animate GPU-friendly properties only: transform and opacity. Ban animating width, height, top, left, and margin - they trigger layout and stutter on mid-range devices. Encode this in the token documentation so it survives code review.
Step 6: Honor reduced motion - mandatory, not optional
Every motion the system defines must have a reduced-motion path. Vestibular disorders make large parallax, zoom, and slide motions physically nauseating for some users; prefers-reduced-motion is an accessibility requirement on par with contrast.
@media (prefers-reduced-motion: reduce) {
* { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}Replace large motions with simple cross-fades rather than removing feedback entirely - the user still needs to see that something changed.
Step 7: Ship the token set and component mapping
Publish the system as named tokens plus a per-component mapping (component → what animates → duration token → easing token). The mapping is what stops drift: an engineer building a new dropdown copies the menu row, not a number from memory.
Worked token set (copy-paste artifact)
// motion.tokens.js - single source of truth for UI motion
export const motion = {
duration: {
instant: '0ms',
fast: '100ms', // hovers, toggles, color changes
base: '200ms', // default component transition
slow: '300ms', // modals, sheets, page transitions
deliberate: '500ms',// large reveals only - hard ceiling
},
easing: {
enter: 'cubic-bezier(0, 0, 0.2, 1)', // decelerate in
exit: 'cubic-bezier(0.4, 0, 1, 1)', // accelerate out
move: 'cubic-bezier(0.4, 0, 0.2, 1)', // on-screen A→B
},
stagger: { list: '30ms' },
}
// Per-component mapping - extend one row per new component
export const componentMotion = {
tooltip: { animates: 'opacity', in: ['fast', 'enter'], out: ['fast', 'exit'] },
dropdown: { animates: 'opacity, transform', in: ['base', 'enter'], out: ['fast', 'exit'] },
modal: { animates: 'opacity, transform', in: ['slow', 'enter'], out: ['base', 'exit'] },
toast: { animates: 'transform, opacity', in: ['base', 'enter'], out: ['base', 'exit'] },
pageNav: { animates: 'opacity, transform', in: ['slow', 'enter'], out: ['base', 'exit'] },
}Read the mapping: every exit is one tier faster than or equal to its entrance (the asymmetry rule), nothing exceeds slow except deliberate reveals, and only transform/opacity appear in animates.
Bad: modal opens with all 400ms ease - animates layout properties, uses a symmetric curve, and exits as slowly as it enters.
Good: modal opens opacity, transform 300ms cubic-bezier(0,0,0.2,1), closes 200ms cubic-bezier(0.4,0,1,1).
Deliverable
Produce a motion system document containing: the duration scale with usage guidance per tier, the easing set with enter/exit/move assignments, choreography rules (stagger, anchoring, priority, the 5-element cap), the animatable-property constraint, the reduced-motion fallback, and the per-component mapping table - implementable by engineering without further design input.
Do NOT
- Do not exceed ~500ms for anything interactive - sluggishness reads as brokenness.
- Do not use one symmetric easing everywhere - enter and exit have different jobs and different curves.
- Do not give exits as much time as entrances; exits are noticed, not watched.
- Do not animate layout properties (
width,height,top,left) - they stutter; usetransform. - Do not ship any motion without a reduced-motion path - it is an accessibility failure, not a polish gap.
- Do not let components carry inline timing values - every value outside the token set is future drift.
- Do not keep a motion that has no job (attention, causality, hierarchy, or softening); decoration is latency.
Quality bar
- Every duration and curve in the product maps to a named token; a codebase grep for
cubic-bezierormsoutside the token file returns nothing new. - Every entrance uses a decelerating curve; every exit accelerates and is no slower than its entrance.
- Reduced-motion is verified by flipping the OS setting, not assumed.
- The component mapping covers every animated component that exists today, and adding a component means adding one row.
For the motion details of one specific component or flow - exact keyframes, sequencing diagrams, handoff redlines - route to motion-spec; the system defined here is its vocabulary. For expressive animated typography, route to kinetic-typography.
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.

