I was not able to find anything regarding smooth scroller and content via ajax (that applies to my specific question).
Anyhow. I had tried .kill(); but that seemed to not really fix my issue (so I simply reverted back to paused(true/false). The scrolltrigger aspects work (as in animation of characters in certain elements). However, the data-lag or data-speed seem to disapear when the page gets loaded again via ajax. Here are my parameters:
bodyScroll = ScrollSmoother.create({
wrapper: 'main',
content: '.main-container',
smooth: 4,
normalizeScroll: true,
ignoreMobileResize: false,
smoothTouch: 0.4,
effects: true,
onUpdate: (self) => {
var clipPathHeight = (1 - self.progress) * 100 + '%';
gsap.set('.gooey-container.page-progress .progress-fill', { clipPath: 'polygon(0 100%, 100% 100%, 100% ' + clipPathHeight + ', 0 ' + clipPathHeight + ')' });
},
});