Jump to content
Search Community

adamo

Premium
  • Posts

    14
  • Joined

  • Last visited

Community Answers

  1. 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();
        });
×
×
  • Create New...