dimanche 28 juin 2015

animate.css - How to make an animation after pageload

I use animate.css to fadeInDown and fadeInUp the element.

<h1 class="animated fadeInDown">text</h1>
<h5 class="animated fadeInUp">text</h5>

How to make this animations work after pageload?

Also I added

.preload * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
}     

 $(".loader").fadeOut("slow", function(){
        $("#home").removeClass("preload");
    });

But this do not help.

Aucun commentaire:

Enregistrer un commentaire