Share Posted April 27, 2015 I have been working on a 2d/3d transition effect module, and I have been running into some issues integrating with gsap (TweenLite). Most of the Tweens require updating on every $("window").resize() function if they have any media queries. Unfortunately I have been running into issues overwriting TweenLite.to's that involve rotations. A good example of this is a simple "hamburger" icon animation. In the below codepen is a decent example of the issue. If you resize the window while the button is in the X state (or navState = 1) the rotation tween acts as though its stuck in the tween.progress=0 state; By changing rotationZ: to rotation: the tween rotation get stuck in the tween.progress=1 state. See the Pen MwYmxa by anon (@anon) on CodePen If anyone can shed some light on this issue it would be much appreciated. Thanks, Daniel See the Pen MwYmVW by anon (@anon) on CodePen Link to comment Share on other sites More sharing options...
Share Posted April 27, 2015 Hi Burdock Nope , there isn't any bug , pls check this out : See the Pen WvbjqV by MAW (@MAW) on CodePen 1 Link to comment Share on other sites More sharing options...
Author Share Posted April 27, 2015 @Diaco.AW Thanks for the fast reply, I was unaware of clearProps existence. Is it documented anywhere? Link to comment Share on other sites More sharing options...
Share Posted April 27, 2015 Hi Burdock, clearProps is a special property for CSSPlugin. Lots of good stuff in here: http://greensock.com/docs/#/HTML5/GSAP/Plugins/CSSPlugin/ 1 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