-
-
Save Ahmed-Sellami/d93b3dcbd97d4877d201d5f0be548f63 to your computer and use it in GitHub Desktop.
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 animatedRadius = remember { Animatable(particleRadius) } | |
val animatedAlpha = remember { Animatable(0f) } | |
LaunchedEffect(isVisible) { | |
if (isVisible) { | |
animatedRadius.animateTo(maxRadiusPx, animationSpec = tween()) { | |
radius = value | |
} | |
animatedAlpha.animateTo(1f, animationSpec = tween()) { | |
visibilityAlpha = value | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment