A
A
Andrew Foy2021-01-22 13:05:17
Frontend
Andrew Foy, 2021-01-22 13:05:17

Why animations don't work correctly?

Everything works but the animation itself does not occur
Connected animate.css

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">

bottom body connected wow
<script src="js/wow.min.js"></script>
    <script>
      new WOW().init();
    </script>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Talalaev, 2021-01-22
@Arda4ek

WOW.js - After initialization, it looks for elements on pages with the 'wow' class and applies an appearance animation to them. By default, everything with wow is hidden. And with the help of classes from animate.css, you can additionally specify the type of animation when an element appears.
Those in the very body of the html file, add the element:

<div class="wow" >
Привет
</div>

After that, it will not be visible until the user scrolls to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question