jquery - How to make CSS3 animation play on a loop -
i have setup play on repeat. i'm not great jquery wondered if show me how?
$('.title1').fadein('fast', function() { $('div').addclass('animated pulse'); }); $('div').one('webkitanimationend mozanimationend msanimationend oanimationend animationend', function() { $('.title1').fadeout(2000); });
http://jsfiddle.net/jfit/86klb/7/
just wrap in function , call callback of fadeout..
doit(); function doit(){ $('.title1').fadein('fast', function() { $('div').addclass('animated pulse'); }) $('div').one('webkitanimationend mozanimationend msanimationend oanimationend animationend', function() { $('.title1').fadeout(2000, function() {doit();}); }); };
Comments
Post a Comment