Hi,
I am creating a responsive animation where there's an image on the background and some elements of it are animated.
For example, I would like to move a cloud 20% of the screen width, but with the code that I have, it's moving it but of a 20% of the cloud width.
Does anyone know how to do it of the screen width instead of the cloud width?
This is my code:
TweenMax.to('#cloud', 5, { x:"20%", ease:Power1.easeInOut, yoyo: true, repeat:-1 });