keith101 Posted July 17, 2020 Share Posted July 17, 2020 Hey guys, I have an issue where if i hover on and off the link too quickly the animation will still play (in this case scale:2). I'm guessing this is because the animation happens in 0.3s and if the mouse is off the link before then, then it will not detect the mouseLeave or mouseout function on the 'a' tag. Question is: How do I stop the animation from happening once the user goes off the link if it happens before the 0.3s? PS. I'm still new to GSAP, transitioning from DIY javascript so i'm still getting used to how things work. Thanks See the Pen XWXYVQy by KeithPaul (@KeithPaul) on CodePen Link to comment Share on other sites More sharing options...
xaviergd Posted July 17, 2020 Share Posted July 17, 2020 Just add on both your #outer_circle tweens overwrite: true after scale, that should take care of it 3 1 Link to comment Share on other sites More sharing options...
keith101 Posted July 17, 2020 Author Share Posted July 17, 2020 Works perfectly! Thanks a lot buddy, had me stumped for a while 🙃 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now