<I have stacked cards. How to implement an nimatio...
# stackoverflow
r
I have stacked cards. How to implement an nimation for stacked items in horizontal pager? I want that during a right swipe, the first element disappears and the lower card (child) appears on top, essentially using a fade-out and zoom-in animation My code. Looks like my animation's code works incorrectly val pagerState = rememberPagerState(initialPage = 0) { pagerCount } Box(modifier = modifier) { for (i in 0 until pagerCount - 1) { Column( modifier = Modifier .padding( top = Spaces.xs2...