Join Slack
Powered by
Can we do z-level and parallax with compose?
# compose
g
Guy Bieber
08/27/2020, 8:13 PM
Can we do z-level and parallax with compose?
s
Sean McQuillan [G]
08/27/2020, 8:29 PM
Yes depending on what you're doing you can use the animate API or build a transition.
https://developer.android.com/jetpack/androidx/releases/compose-animation
https://developer.android.com/reference/kotlin/androidx/compose/animation/package-summary#animate(kotlin.Float,%20androidx.compose.animation.core.AnimationSpec,%20kotlin.Float,%20kotlin.Function1)
https://developer.android.com/reference/kotlin/androidx/compose/animation/package-summary#transition_1
👍 1
Sean McQuillan [G]
08/27/2020, 8:30 PM
animate is useful for a simple animation based on a property or state; transition is useful when you need to coordinate multiple attributes in an animation between states
👆 1
👍 1
7
Views
Open in Slack
Previous
Next