How to use Animate.css + wow,js

Asked

Viewed 1,312 times

2

Guys, I’m using Animate.css. (https://daneden.github.io/animate.css/), and more specifically fadeInDown to show an element when scrolling the website page. However, the effect is loaded next to the page, not when I scroll it. Can anyone tell what it might be? I need to use something else in css or html?

inserir a descrição da imagem aqui

1 answer

2


Can use wow js., compatible with all animations of Animate.css:

new WOW().init();
div {
  height: 600px;
  width: 300px;
}
.inner {
  width: 200px;
  height: 100px;
  background-color:blue;
}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script>

<p>Faça scroll para baixo</p>
<div class="wow pulse infinite" data-wow-duration="0.50s">OLÁ</div>
<div class="wow bounceIn"><div class="inner"></div></div>
<div class="wow lightSpeedOut"><div class="inner"></div></div>
<div class="wow flip"><div class="inner"></div></div>
<div class="wow zoomIn"><div class="inner"></div></div>
<div class="wow swing infinite"><div class="inner"></div></div>
<div class="wow shake"><div class="inner"></div></div>
<div class="wow rotateOut"><div class="inner"></div></div>
<div class="wow hinge"><div class="inner"></div></div>

Here you go examples more complete

  • Thank you very much young man! I had found the plugin as soon as I asked, but the js I found was with html code instead of javascript hahaha. That one worked out, thanks!

  • No @Angelazevedo, you can mark as accepted if it helped. I’m glad you solved

Browser other questions tagged

You are not signed in. Login or sign up in order to post.