Share Posted May 13, 2021 Hi, In the animation, overwrite: true is not working with mask animation, works fine on other normal tweens. Works fine once animations are finished. Thanks for your help, always appreciated. See the Pen OJpNLKZ by buster808 (@buster808) on CodePen Link to comment Share on other sites More sharing options...
Solution Solution Share Posted May 13, 2021 The only problem I see is your use of .from() tweens. When you click a button before the animation finishes, it's going to create an animation from -769.87 to whatever x is at that time. If you want it to animate to 0, then you should use .fromTo() tweens. https://greensock.com/docs/v3/GSAP/gsap.fromTo() 2 1 Link to comment Share on other sites More sharing options...
Author Share Posted May 13, 2021 Perfect thanks 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