onLeave: function (index, nextIndex, direction) {
if(nextIndex == 3){
gsapAniSa.seek();
gsapAniSa.pause();
}
if(nextIndex == 4){
gsapAniPro.seek();
gsapAniPro.pause();
}
if(nextIndex == 5){
gsapAniSup.seek();
gsapAniSup.pause();
}
}}
first we put seek and pause for each timeline with different name with global variables out side of pagepiling then when we call animation like gsap.to(......)
we call gsap.play() before .to etc.