Since you didn’t post the code there’s no way to know where you went wrong, so I’m risking you kicking a few hypotheses:
You forgot the new WOW(). init();
The new WOW().init();
should go at the bottom of the page, after everything preferably, see how it worked properly:
<link href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css" rel="stylesheet">
<script src="//cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<hr>
<img
class="wow fadeIn"
data-wow-duration="2s"
data-wow-delay="2s"
src="https://i.stack.imgur.com/YCSmc.jpg?s=328&g=1">
<script>
new WOW().init();
</script>
Conflict with other CSS like Bootstrap
It may be that the class .img-response
or .logo
is affecting the opacity:
I can’t say, but anyway try temporarily removing them (this I mentioned as an example, it may be that even a CSS that is not a class is affecting)
Download time
It may be that for some reason that just by looking at your HTML to know, you have done CSS without there being rendering lock, what you can try to use to bypass this would simply use the tag style
inside head
with this:
<!DOCTYPE html>
<html>
<head>
...
<style>
.wow {
opacity: 0;
}
</style>
</head>
<body>
...
The ...
are just illustrative, to say that there is more code there
In this way all elements with the class wow
will begin in a forced manner with opacity: 0
Can’t raise a fiddle?
– I_like_trains
I don’t know what this kkkk is, I’ll Google it
– Clayton Furlanetto
put the code here
– Lennon S. Bueno
@Lennons.Bueno are several animations the code is great, if you understand of Animate.css and wow.css know what I’m talking about, there is no way to put the codes of these libraries here. This is my logo that has the excitement
<img class="img-responsive logo wow fadeIn" data-wow-delay="2s" src="imagens/logo.png">
Since you can see this one with a delay of 2s, but I don’t want the image to appear before those 2s, I want it to only appear with the fadein effect, but once the site loads it already appears and then it disappears and the fadein effect comes, I want it to be hidden until the effect appears.– Clayton Furlanetto
Blz @Guilhermenascimento thanks for the help but I do not know and I researched and will complicate me even more, I will have to learn this to explain what I want. I only need a code in js that hides the element for 2s, this can be a class with display None or opacity 0, or that "hides" until the fadein class of Animate acts on the element. I’ll keep searching here to see how I do it. Thanks for the help.
– Clayton Furlanetto
That’s weird, I think or the class
img-responsive
or the classlogo
or another CSS is conflicting with Animate.css, if you can send a link might help. PS: answers something else, when you speakwow css
Actually you mean to sayWOW.js
right? Because wow.css I don’t know.– Guilherme Nascimento
Yes it’s wow.js the bootstrap img-Responsive class I’ve removed it and . so it’s the one I created, there’s nothing conflicting, see
.logo {
 position: absolute;
 width: 100%;
 height: auto;
 top: 5%;
 z-index: 3;
}
– Clayton Furlanetto
But by you I meant not to show the images before the animations take place? Even without I create code for it? Would the libraries Animate.css and wow.js already have this property? Why I researched it is this msm
– Clayton Furlanetto
mano I’m not talking about posting the library, but your JS and HTML code, when you enter the community is shown how to ask questions, if you skipped this part I strongly recommend starting again, help to be helped.
– Lennon S. Bueno
Already have a person who knows Animate.css and wow.js and knows that it is impossible to put the js here, it is helping me, thank you very much.
– Clayton Furlanetto
@Claytonfurlanetto I know you’re a beginner, but now observing our friend’s answer enter as little code as possible in the next questions, ah and the lib he added via Cdn..
– Lennon S. Bueno
I was able to identify the error and I’ve solved it.
– Clayton Furlanetto