I'm teaching some basic GSAP to some design students who are not javascript whizzes, yet.
Is there a way to perform the very simple:
gsap.to("img.myImage", {x: '400px'});
but in terms of the browser window?
e.g. something like:
gsap.to("img.myImage", {x: 'width'});
or
gsap.to("img.myImage", {x: 'width/2'});
or
gsap.to("img.myImage", {x: '50%'});
I saw some solutions that require writing longer javascript functions but that is jumping quite a ways ahead for beginners.
Definitely seems like there would be a benefit to be able to begin the GSAP learning process from a responsive footing in a simple way.