how can I make this type of animation in compose :...
# compose
m
how can I make this type of animation in compose : https://codepen.io/MarioDesigns/pen/woJgeo
f
That looks like combination of
elevation
and
yOffset
animation. Look at compose animation transitions. That will help you animate both values in sync
m
I need only yoffset, not elvation
j
You need both or modify manually the shadow too
f
I need only yoffset, not elvation
In that case it's even simpler 😉 Try rememberInfiniteTransition
m
@Filip Wiesner Thanks Dear
@Javier Thanks
j
At least the animation in codepen is changing the shadow
if you keep the shadow static, probably it will look strange
m
Right @Javier. I got your point, I will add for shadow too.