Hi there, how can I show a `Box{}` and start with ...
# compose
l
Hi there, how can I show a
Box{}
and start with a fade-in animation?
If not using visibility variable to control, just want the Box{} showing with fade-in animation at the beginning.
i
You can use AnimatedVisibility
❤️ 2
l
Thanks, but the delay(500) is necessary? it will make the area blank for 500 ms...
Is there any way to show the Box with animation but without delay?
c
Remove the delay in the code above works since LaunchedEffect will run as soon as composition starts
1
You can also use updateTransition and set the initial state that will be animated to as soon as the code enters composition: https://developer.android.com/jetpack/compose/animation#updateTransition