agentleFS
soilmasssoilmass/motion-design-agent/skills/easing/SKILL.md

easing

Skill7 starsChanged 10 months agoMITView on GitHub

Easing curves and cubic-bezier values from industry standards. Use when selecting animation easing, understanding curve differences across design systems, or implementing easing in code. References W3C DTCG, M3, Fluent, Carbon, and CSS standards.

The file

Files
SKILL.md

Easing Curves

Industry-standard easing curves with cross-system comparison.

Standards Reference

StandardDocumentation
W3C DTCGdesigntokens.org (cubicBezier type)
Material Design 3m3.material.io/styles/motion/easing-and-duration
Fluent 2fluent2.microsoft.design/motion
Carboncarbondesignsystem.com/guidelines/motion
CSSw3.org/TR/css-easing-1

Primary Curves (M3 Baseline)

Load from: tokens/easing.tokens.json

TokenCubic BezierUse
standard(0.2, 0, 0, 1)Most animations
emphasized-decelerate(0.05, 0.7, 0.1, 1)Entering screen
emphasized-accelerate(0.3, 0, 0.8, 0.15)Exiting screen
linear(0, 0, 1, 1)Continuous loops

Selection Guide

Is element ENTERING? → emphasized-decelerate
Is element EXITING?  → emphasized-accelerate
Is element MOVING?   → standard
Is it CONTINUOUS?    → linear
Is it IMPORTANT?     → emphasized

Cross-System Comparison

PurposeM3FluentCarbon
Standard(0.2, 0, 0, 1)(0.1, 0.9, 0.2, 1)(0.2, 0, 0.38, 0.9)
Enter(0.05, 0.7, 0.1, 1)(0.1, 0.9, 0.2, 1)(0, 0, 0.38, 0.9)
Exit(0.3, 0, 0.8, 0.15)(0.9, 0.1, 1, 0.2)(0.2, 0, 1, 0.9)

Implementation

JavaScript (GSAP)

import tokens from '../tokens/easing.tokens.json';

const easing = tokens.motion.easing;
gsap.to('.element', {
  x: 100,
  duration: 0.3,
  ease: `cubic-bezier(${easing.standard.$value.join(',')})`
});

CSS

.entering {
  transition: all 250ms cubic-bezier(0.05, 0.7, 0.1, 1);
}
.exiting {
  transition: all 200ms cubic-bezier(0.3, 0, 0.8, 0.15);
}

Remotion

import { Easing } from 'remotion';
import tokens from '../tokens/easing.tokens.json';

const [x1, y1, x2, y2] = tokens.motion.easing['emphasized-decelerate'].$value;
const easing = Easing.bezier(x1, y1, x2, y2);

React (Framer Motion)

<motion.div
  animate={{ opacity: 1 }}
  transition={{
    duration: 0.25,
    ease: [0.05, 0.7, 0.1, 1] // emphasized-decelerate
  }}
/>

Property-Specific Easing (Google M3 Rule)

DO NOT apply the same easing to all properties. Google M3 requires different easing for different property types.

Property TypeEasingReasoning
Transform (translate, scale, rotate)Asymmetric (emphasized)Needs physics simulation
OpacityLinear allowedNo spatial component
Color/backgroundLinearNo spatial component
Filter (blur, etc.)EitherDepends on visual weight

WRONG

.element {
  transition: all 300ms ease-in-out; /* Lazy, amateurish */
}

CORRECT

.element {
  transition:
    transform 300ms cubic-bezier(0.2, 0, 0, 1),  /* Emphasized for spatial */
    opacity 100ms linear;                          /* Linear for fade */
}

Container Transform Example

// Transform uses emphasized easing
gsap.to(container, {
  x: 100,
  width: 400,
  height: 300,
  duration: 0.3,
  ease: 'power2.out' // Emphasized approximation
});

// Content swap uses linear (nested timing)
gsap.to(oldContent, { opacity: 0, duration: 0.1, ease: 'none' });
gsap.to(newContent, { opacity: 1, duration: 0.2, ease: 'none', delay: 0.1 });

Remotion Example

import { interpolate, Easing } from 'remotion';

const emphasized = Easing.bezier(0.2, 0, 0, 1);

// Transform with emphasized
const x = interpolate(frame, [0, 9], [0, 100], { easing: emphasized });

// Opacity with linear (no easing param = linear)
const opacity = interpolate(frame, [0, 3], [1, 0]);

See references/curve-comparison.md for visual comparisons. See references/easing-selection.md for detailed selection logic.

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.