Last active
February 24, 2024 14:23
-
-
Save AndreVero/be52b1b891e39af1867d40cc571dfc02 to your computer and use it in GitHub Desktop.
Start of bouncy animation
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 animateFloat = remember { Animatable(0f) } | |
LaunchedEffect(key1 = items) { | |
animateFloat.animateTo( | |
targetValue = 1f, | |
animationSpec = spring( | |
dampingRatio = Spring.DampingRatioMediumBouncy, | |
stiffness = Spring.StiffnessVeryLow | |
) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment