gsap scrolltrigger pin kill code example
Example: gsap pin scrolltrigger
gsap.registerPlugin(ScrollTrigger);
gsap.utils.toArray('.layer').forEach(layer => {
ScrollTrigger.create({
trigger: layer,
pin: true,
start: 'top top',
pinSpacing: false,
});
});