I'm new to jQuery. I'm using Animate.css and just want to add delay in the animation so I tried this:
$('#fadeInRight').delay(20000).addClass('animated fadeInRight');
Why is this not working?
I'm new to jQuery. I'm using Animate.css and just want to add delay in the animation so I tried this:
$('#fadeInRight').delay(20000).addClass('animated fadeInRight');
Why is this not working?
Use setTimeout()
setTimeout(function(){$('#fadeInRight').addClass('animated fadeInRight')},20000);
The github page states another way to add a delay, no jQuery needed:
#yourElement {
-vendor-animation-duration: 3s;
-vendor-animation-delay: 2s;
-vendor-animation-iteration-count: infinite;
}
Note: be sure to replace "vendor" in the CSS with the applicable vendor prefixes (webkit, moz, etc)