Skip to content

Instantly share code, notes, and snippets.

@raghunandankavi2010
Created June 27, 2022 16:36
Show Gist options
  • Save raghunandankavi2010/0af8598849a50a35342de057a26c244d to your computer and use it in GitHub Desktop.
Save raghunandankavi2010/0af8598849a50a35342de057a26c244d to your computer and use it in GitHub Desktop.
Animating Progess
LaunchedEffect(greyAnimate,yellowAnimate,redAnimate,greenAnimate,redAnimate) {
launch {
greenAnimate.animateTo(
targetValue = 1f,
animationSpec = tween(durationMillis = 3000, easing = LinearEasing))
yellowAnimate.animateTo(
targetValue = 1f,
animationSpec = tween(durationMillis = 3000, easing = LinearEasing))
redAnimate.animateTo(
targetValue = 1f,
animationSpec = tween(durationMillis = 3000, easing = LinearEasing))
greyAnimate.animateTo(
targetValue = 1f,
animationSpec = tween(durationMillis = 3000, easing = LinearEasing))
remainingAnimate.animateTo(
targetValue = 1f,
animationSpec = tween(durationMillis = 3000, easing = LinearEasing))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment