Hello, I have some problem with GSAP. Hope can find the solution here.
I want to use a scrollTrigger with {pin: true;}. Then onLeave, the animation should stop, so that when going up (onEnterBack), the animation shouldn't reverse. Then on leaveBack, I would like to re-enable the animation as at the beginning, so that scrolling down again would animate.
I want to find something like this example, but also to use the setting with {pin: true;} , and I want the progress stop at (1) when onLeave. https://codepen.io/GreenSock/pen/Rwqozzx
I don't know how to fix it, please help me, thanks for all good peoples here.?
This is my codepen: https://codepen.io/lin-hsienli/pen/KKrvmgE