How can I create a translate animation in Compose, I have an image in top right section of my app and i want to animate it to the centre of screen when clicked. I am unable to figure out how to do this? What modifiers do I need to animate?
I have gone through all those APIs mentioned in that article. I am not able to figure out how to implement a translate animation. Do I need to animate some dp value for the offset???
d
Doris Liu
10/28/2021, 8:49 PM
Sounds like this is more of a shared element use case than simply repositioning the image. Do you have a video/gif for the result you are going for?