This way you would only be creating new instances over and over again, whenever you transition between pages - because you never kill or destroy the old instances - the same goes for the smooth-scrollbar in your initial demo.   For killing off old ScrollTriggers  you could use a function that contains this   let triggers = ScrollTrigger.getAll(); triggers.forEach( trigger => { trigger.kill(); });   preferably in a global hook of barba.   A way to destr
    • Like