Hi all,
I am trying to stop scroll trigger after animation is completed. But when I try to kill() it it would jump down. My goal it to play some animations on scroll and once I reach the last animation I would like to kill it so it will not play backwards or again when user scrolls up.
See the Pen XWaZPxR by k_ristian (@k_ristian) on CodePen
Well, you could just set once: true on your ScrollTrigger but you're going to run into logic issues because you're pinning which involves adding a wrapper with padding so that it puts enough space in there to accommodate the duration of the pinning. So if you don't want it to run backwards when scrolling up, you'll either have a bunch of extra space at the top OR you'll get the jump OR you could sorta fake it by adjusting the scroll position when the pin spacer gets removed so it's a the same sp