Hey everyone,
I am doing my first steps with GSAP right now. I am using it with Kirby and try to trigger some scroll events.
I startet with the simple
gsap.to(".box", {
scrollTrigger: ".box", // start the animation when ".box" enters the viewport (once)
x: 500
});
Unfortunately, the animation is only triggered when I resize the browser window. How can I fix this? Any hint is appreciated?