Some minimal progress on my side but I have some questions / observations related to the way I have structured these tweens and scrolltriggers.
I've managed to track it down the issue to the following code
gsap.from('.progress-1', {
scrollTrigger: {
trigger: '#sticky-1',
scrub: true,
pin: false,
start: 'top 25%',
end: 'bottom 25%',
markers: true,
},
scaleX: 0,
transformOrigin: 'left center',
ease: 'none',
});
A few things I am noticing:
-- If pin is set to true, I see the page jump when navigating to another page, if pin is set to false I do not see the page jump issue.
-- if pin is set to false, I see the animation progress finish when navigating to another page - meaning the tween completes as if the end position was met with the scrollTrigger -- not sure why this is happening, but I expect this may be the cause of my issue. When the item is pinned and it jumps, it's jumping to where the animation end spot would be as if the tween had been completed.
I assume I am missing something obvious about the way I have this structured.
Here's a video with some detail of what I'm seeing, and the latest StackBlitz example I'm working in.