Hello! How can I apply `depth` animation to my com...
# compose
n
Hello! How can I apply
depth
animation to my component, similar to
DepthPageTransformer
in
ViewPager
👀 1
c
A combination of animating scale and alpha modifiers should do it
n
Thanks! If you don't mind could you share a minimal code piece?
c
Are you looking specifically for the same animation and behavior in a paging kind of component? Or just the effect in isolation around scale + fading?
n
Actually same animation by using scaleIn + fading combination
c
I played around with the Pager library from Accompanist but that doesn't quite do the same thing, since the DepthPageTransformer has the items stacked on top of each other. So still looking into it.
Might be worth giving this library a try and see if you can tweak the transitions: https://github.com/theapache64/twyper cc @theapache64
👍 1
yes black 1
n
thank you. will take a look 🙂