Share Posted November 13, 2017 hi, It seems that TweenLite.defaultOverwrite = 'all'; does work, but TweenMax.defaultOverwrite = 'all'; does not. This can cause confusion. - Felix See the Pen YEQxwL by felixturner (@felixturner) on CodePen 1 Link to comment Share on other sites More sharing options...
Share Posted November 13, 2017 Hi, Sorry for the confusion, but there's no such thing as TweenMax.defaultEase. https://greensock.com/docs/TweenMax As Jack mentioned in a recent post about TweenLite.defaultEase... TweenLite is the core class for everything, thus it's the proper place to attach static properties like that. It'd be inefficient to have to check two places for a default overwrite mode and it would cause more confusion if they were different. Hopefully that helps 2 Link to comment Share on other sites More sharing options...
Author Share Posted November 13, 2017 OK good to know. I've been using GSAP for a long time and I found it confusing. Most TweenLite properties & functions are replicated in TweenMax so I kind of assumed TweenMax supported all TweenLite properties. also this docs page is confusing: https://greensock.com/docs/TweenMax/static.defaultOverwrite Link to comment Share on other sites More sharing options...
Share Posted November 14, 2017 You're right. Although we have the docs configured to not show that property in the left nav it is still showing up on the TweenMax main class page at the bottom. We are looking into getting that fixed. Sorry for the confusion. 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