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?

demo

$('.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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -