Skip to content

Instantly share code, notes, and snippets.

@Ahmed-Sellami
Created Aug 24, 2021
Embed
What would you like to do?
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