Skip to content

Instantly share code, notes, and snippets.

@shoaibmushtaq25
Created August 17, 2023 15:04
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 shoaibmushtaq25/8a3e46c73a36d1c65f01c517a49c6321 to your computer and use it in GitHub Desktop.
Save shoaibmushtaq25/8a3e46c73a36d1c65f01c517a49c6321 to your computer and use it in GitHub Desktop.
val animateFloat = remember { Animatable(0f) }
LaunchedEffect(animateFloat) {
animateFloat.animateTo(
targetValue = currentValue / maxValue.toFloat(),
animationSpec = tween(durationMillis = 2000, easing = FastOutSlowInEasing)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment