let tl = gsap.timeline({ // yes, we can add it to an entire timeline! scrollTrigger: { trigger: '.container', pin: true, // pin the trigger element while active start: 'top top', // when the top of the trigger hits the top of the viewport end: '+=500', // end after scrolling 500px beyond the start scrub: 1, // smooth scrubbing, takes 1 second to "catch up" to the scrollbar snap: { snapTo: 'labels'
