updateTransition for Coordinated Motion
Animate several values from one state.
Animate Many Values Together
When several properties should change as one state shifts, you want them in sync. updateTransition coordinates many animations from a single state. ✨
Start From a State
Create a transition by handing updateTransition your current state. Compose watches it and drives every child animation when the state changes.
val transition = updateTransition(targetState = expanded)All lessons in this course
- animate*AsState for Simple Tweens
- AnimatedVisibility & Crossfade
- updateTransition for Coordinated Motion
- Gesture-Driven Animations