sybilrondeau Posted April 22, 2021 Share Posted April 22, 2021 Hi I have this button in a Vue.js app and I don't understand why the close action take more and more time to perform. Can you help ? Regards. Sybil See the Pen vYgQQNq by sybilrondeau (@sybilrondeau) on CodePen Link to comment Share on other sites More sharing options...
mikel Posted April 22, 2021 Share Posted April 22, 2021 Hey @sybilrondeau, from the DOCs .play( from:Number, suppressEvents:Boolean ) : self Begins playing forward, optionally from a specific time (by default playback begins from wherever the playhead currently is). So try .play(0) Happy tweening ... Mikel 1 Link to comment Share on other sites More sharing options...
Solution OSUblake Posted April 22, 2021 Solution Share Posted April 22, 2021 You keep adding more animations to the timeline on every click. Just make the animation once. See the Pen e1a92bc3b9375cf74e6599da197fc6b0 by osublake (@osublake) on CodePen 2 Link to comment Share on other sites More sharing options...
sybilrondeau Posted April 22, 2021 Author Share Posted April 22, 2021 Ok I understand !! Thank you very much ! 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