Material 3 Expressive fast spatial
It is the bounciest of the four Material 3 spatial springs here. Stiffness 800, damping 33.94 and mass 1 give a damping ratio of 0.6, so the spring is underdamped. It settles to within 0.1% in 0.36 s. It passes the end value by up to 9.5% at 0.139 s and crosses it 2 times.
Demo
Both boxes take 0.36 s. Playing at 0.25× speed.
Your system asks for reduced motion, so nothing plays. The chart shows the whole move.
Code
A spring has no fixed duration, so the CSS takes the settle time (360 ms) and a linear() string that follows the spring.
transition: translate 360ms linear(0, 0.0077, 0.0292, 0.0622, 0.1046, 0.1544, 0.2099, 0.2694, 0.3314, 0.3946, 0.458, 0.5205, 0.5814, 0.6399, 0.6956, 0.7479, 0.7966, 0.8414, 0.8823, 0.9192, 0.952, 0.9809, 1.006, 1.0275, 1.0455, 1.0603, 1.072, 1.0811, 1.0876, 1.0919, 1.0942, 1.0948, 1.0938, 1.0916, 1.0884, 1.0842, 1.0794, 1.0741, 1.0684, 1.0625, 1.0565, 1.0505, 1.0446, 1.0388, 1.0333, 1.0281, 1.0232, 1.0186, 1.0144, 1.0106, 1.0072, 1.0041, 1.0014, 0.9991, 0.9971, 0.9955, 0.9941, 0.993, 0.9922, 0.9916, 0.9912, 0.9911, 0.991, 0.9911, 0.9914, 0.9917, 0.9921, 0.9925, 0.9931, 0.9936, 0.9942, 0.9947, 0.9953, 0.9959, 0.9964, 0.9969, 0.9974, 0.9979, 0.9983, 0.9987, 1);el.animate({ translate: ['0 0', '240px 0'] }, { duration: 360, easing: 'linear(0, 0.0077, 0.0292, 0.0622, 0.1046, 0.1544, 0.2099, 0.2694, 0.3314, 0.3946, 0.458, 0.5205, 0.5814, 0.6399, 0.6956, 0.7479, 0.7966, 0.8414, 0.8823, 0.9192, 0.952, 0.9809, 1.006, 1.0275, 1.0455, 1.0603, 1.072, 1.0811, 1.0876, 1.0919, 1.0942, 1.0948, 1.0938, 1.0916, 1.0884, 1.0842, 1.0794, 1.0741, 1.0684, 1.0625, 1.0565, 1.0505, 1.0446, 1.0388, 1.0333, 1.0281, 1.0232, 1.0186, 1.0144, 1.0106, 1.0072, 1.0041, 1.0014, 0.9991, 0.9971, 0.9955, 0.9941, 0.993, 0.9922, 0.9916, 0.9912, 0.9911, 0.991, 0.9911, 0.9914, 0.9917, 0.9921, 0.9925, 0.9931, 0.9936, 0.9942, 0.9947, 0.9953, 0.9959, 0.9964, 0.9969, 0.9974, 0.9979, 0.9983, 0.9987, 1)', fill: 'both' });import { spring, springDuration, springLinear } from '../../core/motion/springs.js';
const k = 800, d = 33.94;
// per-frame code (window.seek, vawe.onFrame): t is seconds since the move starts
const x = 240 * spring(t, k, d);
// CSS and Web Animations: 360 ms, the linear() string above
el.animate(
{ translate: ['0 0', '240px 0'] },
{ duration: springDuration(k, d) * 1000, easing: springLinear(k, d), fill: 'both' },
);Numbers
- Stiffness
- 800k, with mass 1
- Damping
- 33.94d, with mass 1
- Damping ratio
- 0.6underdamped
- Settle time
- 0.36 swithin 0.1% of the end
- Overshoot
- 9.5%peak at 0.139 s
- Crosses the end
- 2times
- 50% of travel
- 0.049 s14% of the settle time
- 90% of travel
- 0.084 s23% of the settle time
- Natural frequency
- 28.28 rad/ssqrt(k)
- Ring period
- 0.278 sone swing of the overshoot
- Peak speed
- 5.08xtimes the average speed
- linear() points
- 81within 0.19% of travel
Computed with spring() and springDuration() from core/motion/springs.js. The settle time is the last moment the spring is more than 0.1% away from the end value; a library stops its own spring by its own rest thresholds, so its clock can run shorter.
Source of the numbers
| Material 3 | androidx main at 9adbcd8 (compose material3 1.6.0-alpha01) |
| damping ratio 0.6, stiffness 800 (MotionScheme.expressive().fastSpatialSpec()) | ExpressiveMotionTokens.SpringFastSpatialDamping (0.6) and SpringFastSpatialStiffness (800) |
Conversion: Stiffness is used as it is with mass 1 (SpringSimulation takes the natural frequency as sqrt(stiffness)). damping = 2 x dampingRatio x sqrt(stiffness), the same c = 2 x naturalFreq x dampingRatio that SpringSimulation.getAcceleration uses.
Related springs
The four closest curves in this set, by the average gap between the two springs over their first seconds. A gap of 0.01 is invisible; 0.1 is a different feel.