Hi, so it's been a few hours and I haven't been able to solve this issue yet. (I'm new to GSAP)
Basically, I'd like to scale down and place an element (#animated-element) into a starting translated position and when the user scrolls down, it animates back to the original element position. As you can see in the codepen it seems to work well, the problem is that when i resize the window, the translated position is not correct and it should be recalculated as when the page loads.
Any help would be appreciated, thank you!