A.M. Posted February 23, 2020 Share Posted February 23, 2020 Hi all, I've started few month ago with GSAP and I really love it! I'm having problem in reversing a timeline. Basically I want the reverse() method to fire as soon as the mouse leave the box. At the moment, depends by how much time I'm hovering the box the reverse() is delayed. It seems to me that the timeline is still running whilst I'm hovering the box and that time is affecting the start of the reverse(). See the Pen RwPKwrP by eandram (@eandram) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted February 23, 2020 Share Posted February 23, 2020 You keep adding animations to your timeline everytime animateBorderEnter gets called. Create the animations once. See the Pen de002abd89937b1ac989a090a58e69b4 by osublake (@osublake) on CodePen 2 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