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