Design systemFoundations
Motion
One ease-out curve for nearly everything. Duration follows how far and how important the change is.
Sourcesrc/styles/app.css
The ease-out curve
cubic-bezier(0.16, 1, 0.3, 1)0 ms1400 ms
Durations
Press
150 msButtons and tabs shrink when pressed
Popup
180 msMenus grow out of their trigger
Hover
300 msButton colors and link arrows
Reveal
650 msSections as they scroll into view
Guidelines
Do
- Animate transform and opacity only.
- Grow popups out of their trigger with --transform-origin.
Don't
- Animate width, height, top, or left.
- Loop motion that carries no meaning.
Accessibility
- With prefers-reduced-motion on, transitions stop and scenes rest on their final step.