Design tokens for motion
Curves that survive
the handoff.
One source of truth for easings, durations and springs. Designed in motion, exported to CSS, Tailwind, GSAP, Motion, Remotion and After Effects — so the animation keeps its character from the timeline to the browser.
npm i https://github.com/soylepanke/motion-tokens/archive/refs/tags/v1.0.0.tar.gz
Easings
Cubic-bezier curves named by intent. The dot on each graph is the value over time; the dot below is what it looks like on screen.
Compare
Same distance, same time, different character. The faint lane is linear, for reference.
Springs
Physical springs (mass, stiffness, damping). For CSS they are simulated and sampled into a linear() easing with its own duration — the time the spring takes to settle.
Durations
All of them start together, so you can feel the difference.
After Effects
Run apply-motion-token.jsx, pick a token and every selected pair of keyframes gets the exact curve. It converts the bezier to AE speed and influence:
out influence = x1 × 100 out speed = (y1 / x1) × (Δv / Δt)
in influence = (1 − x2) × 100 in speed = ((1 − y2) / (1 − x2)) × (Δv / Δt)
Δv is the change in value and Δt the time between the keys. Scale and Color are converted per dimension; Position uses the distance along the path. With “Copy as After Effects”, each easing gives you the numbers to type by hand.