Kamil_Nowek_11
3 months agoCommunity Member
GSAP and changing the window size
Hi Guys. I'm using a GSAP library to scale object or move it to a given position. Everything looks great but when I'm resizing the window size, objects which are being changed using GSAP, looks like broken, I mean they have strange positions and scale, very different as expected and before window resizing. How should I repair it? Should I know the value of how window has been changed and on window resize event, try to use that value and rescale objects again?