adamo
Community Answers
-
adamo's post in ScrollTrigger swup wrong starting points was marked as the answer
OK so the solution was easy Just kill all triggers before visit starts and refresh them on end
swup.hooks.on("visit:start", () => {
ScrollTrigger.getAll().forEach((t) => t.kill());
});
swup.hooks.on("visit:end", () => {
ScrollTrigger.refresh();
});