Speed
Speed adjustments make transitions smooth and responsive.
Controlling speed
Speed adjustments include duration (how long a transition lasts) and easing (acceleration over time). Controlling transitions by adjusting speed helps users understand UI changes, without complicating tasks.
Do
Don't
Duration
Regardless of an animation’s style, transitions shouldn’t be jarringly fast or so slow that users feel as though they’re waiting. The right combination of duration and easing produces smooth and clear transitions.
Exits and closing
Transitions that close, dismiss, or collapse an element use shorter durations. Exit transitions may be faster because they require less attention than the user’s next task.
Transition area
Transitions that cover small areas of the screen have shorter durations than those that traverse larger areas.
Small
Elements with small transition areas, such as icons and selection controls, have short durations.
Medium
Elements with larger transition areas, such as bottom sheets and expanding chips, have slightly longer durations.
• Expanding: 250ms
• Collapsing: 200ms
• Expanding: 250ms
• Collapsing: 200ms
Large
Animated elements that traverse a large portion of the screen have the longest durations.
• Expanding: 300ms
• Collapsing: 250ms
• Expanding: 300ms
• Collapsing: 250ms
Easing
Easing adjusts an animation’s rate of change, allowing transitioning elements to speed up and slow down, rather than move at a constant rate.
In the physical world, objects don’t start or stop instantaneously. Instead, they take time to speed up and slow down. Easing is a technique that makes elements move as though natural forces like friction, gravity, and mass are at work.
Types of easing
Easing types may be named differently across platforms. Material Design refers to: standard, emphasized, accelerated, and decelerated easing.
Standard easing
Standard easing subtly brings attention to the end of an animation by taking more time to decelerate than accelerate. Standard easing is the most common form of easing.
Elements that begin and end at rest use standard easing. They speed up quickly and slow down gradually, in order to emphasize the end of the transition.
| Platform | Protocol |
|---|---|
| Android | FastOutSlowInInterpolator |
| CSS | cubic-bezier(0.4, 0.0, 0.2, 1); |
| Flutter | standardEasing |
| iOS | [[CAMediaTimingFunction alloc] initWithControlPoints:0.4f:0.0f:0.2f:1.0f] |
Emphasized easing
In comparison to standard easing, emphasized easing draws extra attention at the end of an animation. Emphasized easing is usually paired with longer durations to convey a more stylized sense of speed.
Elements that begin and end at rest use emphasized easing. They speed up quickly and slow down very gradually, placing extra emphasis on the end of the transition.
| Platform | Protocol |
|---|---|
| Android | FastOutExtraSlowInInterpolator |
| CSS | N/A |
| Flutter | N/A |
| iOS | N/A |
Decelerated easing
Incoming elements are animated using decelerated easing, in which transitions begin at peak velocity (the fastest point in an element's movement) and end at rest.
| Platform | Protocol |
|---|---|
| Android | LinearOutSlowInInterpolator |
| CSS | cubic-bezier(0.0, 0.0, 0.2, 1); |
| Flutter | decelerateEasing |
| iOS | [[CAMediaTimingFunction alloc] initWithControlPoints:0.0f:0.0f:0.2f:1.0f] |
Accelerated easing
Elements exiting a screen use accelerated easing, a transition in which the element starts at rest and ends at peak velocity.
| Platform | Protocol |
|---|---|
| Android | FastOutLinearInInterpolator |
| CSS | cubic-bezier(0.4, 0.0, 1, 1); |
| Flutter | accelerateEasing |
| iOS | [CAMediaTimingFunction alloc] initWithControlPoints:0.4f:0.0f:1.0f:1.0f] |