I am new to gsap and reactjs. I have a problem with using TimeLineLite with react-router. A navbar is created with a link redirecting to the homepage. When I spam clicking it, the animation crashes. How do I solve this problem?
My code is on the codesandbox. Any suggestions are highly appreciated.
https://codesandbox.io/s/sad-brook-if9o6?file=/src/Navbar.css