So im new to Tweenmax and i love it. Very nice.
I have the following code right now:
$('.someDiv').hover(
function(){
TweenMax.to(this, .5, {width: '+=25px', height: '+=25px' });
},
function() {
TweenMax.to(this, .5, {width: '-=25px', height: '-=25px' });
});
And it works. However, if you hover over and off of several elements the widths and heights get all messed up and Jquery's animate.STOP() would fix that if I were using jquery to animate.
Something equivalent to that for tweens?
*edit the jquery version:
$('.someDiv').hover(
function() {
$(this).stop().animate({ etc... });
},
function() {
$(this).stop().animate({ etc... });
});