Skip to content

Animation

Animation functions are utility functions to define remembered animatables and animations with less code

Animatable

1
2
3
4
5
val animatedColor by rememberAnimatable(Color.Red)
val animatedFloat by rememberAnimatable(0f)

animatedColor.animateTo(Color.Blue)
animatedFloat.animateTo(10f)