Rodri Represa
07/28/2021, 10:39 AMColton Idle
07/28/2021, 2:01 PMColton Idle
07/28/2021, 2:01 PMBryan L
07/28/2021, 5:51 PMAnimatedVisibility
(docs) really cool & smooth! I like it 🙂Rodri Represa
07/29/2021, 10:11 AMAnimatedVisibility(
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)
)
) {
...
}