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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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