Sylvenas/react-magic

setInterval(function() to repeat animation

sanushen opened this issue · 0 comments

Is there a way to achieve this animation from magic.css?

//If you want to load the animation after certain time but with infinite loop, you can use this example:
//set timer to 3 seconds, after that, load the magic animation and repeat forever
setInterval(function(){
$('.yourdiv').toggleClass('magictime puffIn');
}, 3000 );