About Material 3 motion springs

M3 Expressive moved Material motion from duration-and-easing curves to physics springs. Each motion scheme has six spring tokens, fast, default and slow, for spatial movement (position, size, rotation) and for effects (color and opacity).

The standard scheme is calm and barely overshoots. The expressive scheme, the M3 Expressive default, uses lower damping on spatial springs, so things bounce slightly when they arrive. Effects springs never overshoot in either scheme.

How to use it

  1. Choose the standard or expressive motion scheme.
  2. Click a spring token to see it move and compare its curve with the others, or tune your own spring.
  3. Copy the code for Compose, CSS (as a linear() easing), Android views, Flutter, SwiftUI or Motion.

Questions

What are the M3 Expressive spring values?

Expressive spatial springs use damping 0.6 and stiffness 800 (fast), 0.8 and 380 (default), and 0.8 and 200 (slow). Standard spatial springs use damping 0.9 with stiffness 1400, 700 and 300. Effects springs use damping 1 with stiffness 3800, 1600 and 800 in both schemes. The values come from Compose's motion tokens.

How do I use the M3 motion scheme in Jetpack Compose?

Pass motionScheme = MotionScheme.expressive() to MaterialTheme (or use MaterialExpressiveTheme), then use MaterialTheme.motionScheme.defaultSpatialSpec() and the other specs as the animationSpec of your animations.

Can CSS animate with a spring?

CSS has no spring timing function, but the linear() easing function can follow any curve. This tool samples the spring into a linear() easing and gives the matching duration, so a CSS transition moves like the spring.

What is the difference between damping ratio and stiffness?

The damping ratio sets how much the spring bounces. 1 means no overshoot, lower values bounce more. Stiffness sets how fast it moves. Higher stiffness reaches the target sooner.