Share Posted May 6, 2015 tween = TweenMax.fromTo(class_name, duration, {top: start_y_percent, left: start_x_percent, scaleX: 0, scaleY: 0, xPercent: -50, yPercent: -50}, {top: end_y_percent, left: end_x_percent, xPercent: -50, yPercent: -50, scaleX: 1, scaleY: 1, onReverseComplete:hide, ease: Elastic.easeOut}).progress(current_progress); Box elastic eases in, but on reverse(), I don't want the elastic ease (just the default ease). I've looked at http://greensock.com/docs/#/HTML5/GSAP/TimelineMax/reverse/, but not sure if possible using reverse(). If not, what's the best way to do this? Thanks. UPDATE: I killed the tween and created a TweenMax.to to reverse the animation (but with some different properties). Link to comment Share on other sites More sharing options...
Share Posted May 7, 2015 When you reverse() an animation it respects all the timing / easing that were present when it played forward. This post goes into more detail: http://greensock.com/forums/topic/9229-how-to-apply-different-easing-of-animation-normal-and-reverse/?p=37241 Perhaps if you built a reduced CodePen demo that showed how and when you intend to reverse() the tween it might help us offer some suitable solutions. As the link above explains, if you try to reverse the tween while its playing and change eases, there is most likely going to be a jump. 3 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