I come from actionscript tweenLite, and I was wondering if you still could overwrite the variable to change the tween like in actionscript like so:
var myTween=tweenLite.to(object,1,{left:"10px"});
myTween=tweenLite.to(object,1,{right:"5px"});
What I would like is a mouseover animation, but a different one mouseout animation (not just reversing the tween).
Here's what I have now:
var bot0 = $("#tapa0");
clipTween40 = TweenLite.to(bot0, .2, {top:"-192px", backgroundColor:"rgba(172, 221, 255,.85)", ease:Cubic.easeOut, paused:true});
bot0.parent().mouseenter(function() {clipTween40.play();});
bot0.parent().mouseleave(function() {clipTween40.reverse();});
Maybe by overwriting the tween...
I've tried without much success.