Jump to content
GreenSock

buster808

overwrite: true not working with mask animation

Moderator Tag
Go to solution Solved by OSUblake,

Recommended Posts

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

  • Solution

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()

 

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×