Created
March 16, 2021 19:01
-
-
Save pauloaapereira/655f8f7384a8a141710239489a8a163e to your computer and use it in GitHub Desktop.
Jetpack Compose - Pendulum Effect - 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val y by infiniteTransition.animateFloat( | |
initialValue = top.value, | |
targetValue = bottom.value, | |
animationSpec = infiniteRepeatable( | |
animation = tween(swingDuration / 2, easing = LinearOutSlowInEasing), | |
repeatMode = RepeatMode.Reverse | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment