Grrrr! I'm fighting with that:
var greenPulse = $("#bsBox5"); var tl4 = new TweenMax.fromTo(greenPulse, 0.7, { boxShadow: "0px 0px 0px 0px rgba(0,255,0,0.3)" }, { boxShadow: "0px 0px 20px 10px rgba(0,255,0,0.7)", repeat: -1, yoyo: true, ease: Linear.easeNone });
tl4.pause();
var tl5 = new TweenMax.to(greenPulse, 0.5, {backgroundColor:"black"}); A sample from here http://www.greensock.com/css3/
but I want to use with a mouseenter/leave action, how can I do that, when mouseleave, animation looping ends
greenPulse.mouseenter(function(){ tl4.play(); }); // start looping greenPulse.mouseleave(function(){
tl4.resume({from:1,suppressEvents:false}); // HERE! how it ends in the same direction, not reverse
});