Jump to content


ScrollTrigger stops working properly after I open and close a modal!

Recommended Posts

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!


Best Regards, 


Link to comment
Share on other sites

Welcome to the forums @MalinO


It's impossible to say what's going on without seeing the issue. Can you make a minimal demo showing the issue? We don't need to see your entire project. Just enough code to recreate the issue. You can use CodeSandbox to make a React demo.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.