Thank's, but not in my case. I have 22 sections with animations in total. Therefore, a universal solution is needed.
Maybe there are any possibility to pause toglleActions while scrolling?
For example:
$(anchor).on("click", function(){
ScrollTrigger.defaults({
toggleActions: "none"
});
gsap.to(window, 1, {
scrollTo:anchor,
onComplete:()=>{
ScrollTrigger.defaults({
toggleActions: "play"
});
}
})
});