Open thePlebDev opened 1 year ago
I am going to have this for the next update. However, we would do something like this:
var isVisible by remember { mutableStateOf(false) }
val fadeInAlpha = rememberInfiniteTransition().animateFloat(
initialValue = 0f,
targetValue = 1f,
animationSpec = infiniteRepeatable(
animation = tween(durationMillis = 1000, easing = LinearEasing),
repeatMode = RepeatMode.Reverse
)
)
if (!isVisible) {
// Start the animation when the composable is first rendered
isVisible = true
}
Proposed change
Why is this important
Additional context