How can I create this animation in jetpack compose...
# compose
a
How can I create this animation in jetpack compose? I have tried it with
HorizontalPager
but I think
HorizontalPager
is not enough to achieve this effect.
s
You should be able to create it using zIndex and some UI transformation Have worked with similar transformation. I'll try to find the github
https://github.com/rizmaulana/compose-stacked-snackbar Found it It is similar to your usecase but opposite orientationstack
a
I am not sure it is similar but the example I got from https://github.com/Devlight/InfiniteCycleViewPager
it is written with PagerAdapter and old Viewpager
I tried it to do in SwiftUI but ended with like

https://user-images.githubusercontent.com/28716129/224845381-f542024c-3ec5-4147-abe1-66329f64b96a.gif

which is not exactly what I want