diff --git a/app/src/main/java/com/imashnake/animite/features/home/HomeScreen.kt b/app/src/main/java/com/imashnake/animite/features/home/HomeScreen.kt index 36598720..ddd5958b 100644 --- a/app/src/main/java/com/imashnake/animite/features/home/HomeScreen.kt +++ b/app/src/main/java/com/imashnake/animite/features/home/HomeScreen.kt @@ -1,8 +1,13 @@ package com.imashnake.animite.features.home +import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.animateColorAsState import androidx.compose.animation.core.animateDpAsState import androidx.compose.animation.core.tween +import androidx.compose.animation.expandVertically +import androidx.compose.animation.fadeIn +import androidx.compose.animation.fadeOut +import androidx.compose.animation.shrinkVertically import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement @@ -206,7 +211,11 @@ fun HomeRow( onItemClicked: (Media.Medium) -> Unit, modifier: Modifier = Modifier ) { - if (list.isNotEmpty()) { + AnimatedVisibility( + visible = list.isNotEmpty(), + enter = fadeIn() + expandVertically(), + exit = fadeOut() + shrinkVertically() + ) { Column( modifier = modifier, verticalArrangement = Arrangement.spacedBy(LocalPaddings.current.medium)