I have a looping animation on hover:
TweenMax.defaultOverwrite = "all";
$('#box a').hover(
function(){
$(this).addClass('hover'); // works
TweenMax.to( $("#box .arrowbar"), 0.5, {css:{left:7}, repeat:-1, ease:Linear.easeNone});
},
function(){
$(this).removeClass('hover'); // works
TweenMax.to( $("#box .arrowbar"), 0.5, {css:{left:7}});
}
);
It works on first mouseenter and mouseleave. What's wrong (using it in a html5boilerplate setup). Using Chrome atm.