<https://twitter.com/rodriidev/status/142033084375...
# compose
r
c
How you get that animation from top to bottom?
This specifically. Where it comes up?
b
Looks like
AnimatedVisibility
(docs) really cool & smooth! I like it 🙂
r
Exactly! I use these params
Copy code
AnimatedVisibility(
        visible = bottomBarState.subCategoriesVisibility,
        enter = slideInVertically(
            // Slide in from 40 dp from the top.
            initialOffsetY = { with(density) { 40.dp.roundToPx() } },
            animationSpec = tween(durationMillis = 300, easing = LinearEasing)
        ) + fadeIn(
            // Fade in with the initial alpha of 0.3f.
            initialAlpha = 0.3f
        ),
        exit = slideOutVertically(
            targetOffsetY = { with(density) { 40.dp.roundToPx() } },
            animationSpec = tween(durationMillis = 300, easing = LinearEasing)

        ) + fadeOut(
            animationSpec = tween(durationMillis = 300, easing = LinearEasing)
        )
    ) {
       ...
}