Skip to content

Instantly share code, notes, and snippets.

@AndreVero
Last active February 24, 2024 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndreVero/be52b1b891e39af1867d40cc571dfc02 to your computer and use it in GitHub Desktop.
Save AndreVero/be52b1b891e39af1867d40cc571dfc02 to your computer and use it in GitHub Desktop.
Start of bouncy animation
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