Unfortunately I cannot make a simple CodePen, that has the same issue.
And since the website is under construction sharing it here isn't possible - so the attached GIF is the best I can do
Any ideas on why this happens?
I have this code that gets my sections with data-pinned attribute:
gsap.utils.toArray('[data-pinned]').forEach(function(elem) {
ScrollTrigger.create({
trigger: elem,
start: "top top",
pin: true,
markers: true,
pinSpacing: false,
});
});