Hi everyone, I'm having some problems with scrollTrigger. I'm trying to animate logo that's fixed in the center on the screen then moves to top left on scroll, but when I resize the screen in responsive mode, animation triggers (logo goes to top left without scrolling) and stops working on scroll. I tried several different solutions that I've found here, but none of it works. Any advice on how to fix it? Below is the screenshot of my code
ScrollTrigger breaks on resize
in GSAP
Posted
Hi everyone, I'm having some problems with scrollTrigger. I'm trying to animate logo that's fixed in the center on the screen then moves to top left on scroll, but when I resize the screen in responsive mode, animation triggers (logo goes to top left without scrolling) and stops working on scroll. I tried several different solutions that I've found here, but none of it works. Any advice on how to fix it? Below is the screenshot of my code