Amazing, Got it working !!! Thank you guys ?
I've used Zack's code and akapowl method - Before rendering a new page KILL all ScrollTrigger and re-initialize again.
####People who's using Barba Js + ScrollTrigger
You still need to add this piece of code to make it work - "data.current.contaier.remove();"
barba.init({
sync: true,
transitions: [
{
async leave(data) {
data.current.container.remove();
},
async beforeEnter(data) {
ScrollTrigger.getAll().forEach(t => t.kill());
},
async enter(data) {
// animation function
},
async once(data) {
// animation function
},
},
],
});
Whoever need it please check my codepen link. https://codepen.io/william_bella/project/editor/AxLLKq