I have a problem with ScrollTrigger, it stops working properly after I open up and close a modal on my single page application.
I have build my application with React. The only thing I have found as a solution is to call the ScrollTrigger.refresh(). I have tried that but I can't get it to work. Can you give me some examples on how I should use it? The modal pops-up after I have clicked on a button. I don't think that I'm the first one who have had this problem. Really need your help!