Is this sort of effect (first time load, slide fro...
# compose
c
Is this sort of effect (first time load, slide from bottom) available in compose Column or LazyColumn (column would be preferred for my particular situation, but open to suggestions).
a
I think
AnimatedVisibility
should work. Just specify a delay according to the index.
2
c
Didn't know that you could delay an animatedVisibility but I will give it a whirl! also... i thought you needed a visibile boolean... but since i just want this on first launch, maybe I can just always pass in true?
a
AnimatedVisibility
only animates visibility changes so passing true won’t work. However you can use the overload that takes a `MutableTransitionState`:
Copy code
AnimatedVisibility(
    visibleState = remember {
        MutableTransitionState(initialState = false).apply { targetState = true }
    }
)
👍 1
c
I do exactly this in the Shrine sample:

https://youtu.be/pAhQPVdCpVs

K 3
c
ive definitely seen that video too but my brain is overloaded with all the recent IO videos lol
thank you Chris!
c
unfortunately, i couldn't get this to look quite right. quitting on it for now, but will have to come back to it!
c
Let me know if you need help! Basically what you do is set the exit/enter params to None on the AnimatedVisibility itself, then loop through a Composable within it in a Column/Row with the modifier
animateEnterExit
which allows you to specify the animation per item
c
Alright. Somehow that sounds easy. I'll try again once I'm back home next week. 🤞