Easing und Dauer: Tokens & Spezifikationen
Easing und Dauer erzeugen reaktionsschnelle und ausdrucksstarke Bewegung
TIP
Mit dem Expressive-Update nutzen Komponenten und Bewegungen jetzt das federbasierte Motion-Physics-System. Produkte sollten auf das neue System umsteigen. Das Easing-und-Dauer-System wird weiterhin für Übergänge verwendet und kann von Teams genutzt werden, die noch nicht auf GM3 Expressive umgestiegen sind; es wird jedoch nicht mehr gepflegt.
Tokens
Motion-Easing und -Dauer lassen sich mithilfe von Easing- und Dauer-Tokens implementieren. Weitere Informationen zu Design-Tokens
| Token | Wert |
|---|---|
| Motion spring fast spatial | damping 0.9, stiffness 1400 |
| Motion spring fast effects | damping 1, stiffness 3800 |
| Motion spring default spatial | damping 0.9, stiffness 700 |
| Motion spring default effects | damping 1, stiffness 1600 |
| Motion spring slow spatial | damping 0.9, stiffness 300 |
| Motion spring slow effects | damping 1, stiffness 800 |
Easing
Emphasized-Easing-Set
Dieses Set wird am häufigsten verwendet, da es den ausdrucksstarken Stil von M3 verkörpert.
| Info/Plattform | Emphasized | Emphasized decelerate | Emphasized accelerate |
|---|---|---|---|
| Token | md.sys.motion.easing.emphasized | md.sys.motion.easing.emphasized.decelerate | md.sys.motion.easing.emphasized.accelerate |
| Android | pathInterpolator(M 0,0 C 0.05, 0, 0.133333, 0.06, 0.166666, 0.4 C 0.208333, 0.82, 0.25, 1, 1, 1) | PathInterpolator(0.05f, 0.7f, 0.1f, 1f) | PathInterpolator(0.3f, 0f, 0.8f, 0.15f) |
| CSS | N/A (Standard-Easing als Fallback verwenden) | cubic-bezier(0.05, 0.7, 0.1, 1.0) | cubic-bezier(0.3, 0.0, 0.8, 0.15) |
| Flutter | easeInOutCubicEmphasized | Cubic(0.05, 0.7, 0.1, 1.0); | Cubic(0.3, 0.0, 0.8, 0.15); |
| iOS | N/A (Standard-Easing als Fallback verwenden) | ControlPoints:0.05f:0.7f:0.1f:1.0f | ControlPoints:0.3f:0.0f:0.8f:0.15f |
| After Effects | After Effects Easing Panel verwenden (Download) | ||
Standard-Easing-Set
Dieses Set wird für einfache, kleine oder funktionale Übergänge verwendet.
| Standard | Standard decelerate | Standard accelerate | |
|---|---|---|---|
| Token | md.sys.motion.easing.standard | md.sys.motion.easing.standard.decelerate | md.sys.motion.easing.standard.accelerate |
| Android | PathInterpolator(0.2f, 0f, 0f, 1f) | PathInterpolator(0f, 0f, 0f, 1f) | PathInterpolator(0.3f, 0f, 1f, 1f) |
| CSS | cubic-bezier(0.2, 0.0, 0, 1.0); | cubic-bezier(0, 0, 0, 1); | cubic-bezier(0.3, 0, 1, 1); |
| Flutter | Cubic(0.2, 0.0, 0, 1.0); | Cubic(0, 0, 0, 1); | Cubic(0.3, 0, 1, 1); |
| iOS | ControlPoints:0.2f:0.0f:0.0f:1.0f | ControlPoints:0.0f:0.0f:0.0f:1.0f | ControlPoints:0.3f:0.0f:1.0f:1.0f |
| After Effects | After Effects Easing Panel verwenden (Download) | ||
Dauer
Kurze Dauer
Kurze Dauer wird für kleine, funktionale Übergänge verwendet.
| Token | Wert |
|---|---|
md.sys.motion.duration.short1 | 50 ms |
md.sys.motion.duration.short2 | 100 ms |
md.sys.motion.duration.short3 | 150 ms |
md.sys.motion.duration.short4 | 200 ms |
Mittlere Dauer
Mittlere Dauer wird für Übergänge verwendet, die sich über einen mittleren Bereich des Bildschirms erstrecken.
| Token | Wert |
|---|---|
md.sys.motion.duration.medium1 | 250 ms |
md.sys.motion.duration.medium2 | 300 ms |
md.sys.motion.duration.medium3 | 350 ms |
md.sys.motion.duration.medium4 | 400 ms |
Lange Dauer
Lange Dauer wird häufig mit Emphasized-Easing kombiniert und für große, ausdrucksstarke Übergänge verwendet.
| Token | Wert |
|---|---|
md.sys.motion.duration.long1 | 450 ms |
md.sys.motion.duration.long2 | 500 ms |
md.sys.motion.duration.long3 | 550 ms |
md.sys.motion.duration.long4 | 600 ms |
Extra lange Dauer
Obwohl sie selten vorkommen, werden für einige Übergänge Dauern von über 600 ms verwendet. Sie werden in der Regel für Ambient-Übergänge verwendet, die keine Benutzereingabe erfordern.
| Token | Wert |
|---|---|
md.sys.motion.duration.extra-long1 | 700 ms |
md.sys.motion.duration.extra-long2 | 800 ms |
md.sys.motion.duration.extra-long3 | 900 ms |
md.sys.motion.duration.extra-long4 | 1000 ms |