I'm using animate.css with wow.js to fadeOut a div on scroll, but it fades out and then comes back in. I'd like it to fade away and stay away.
I've tried adding the class "animated" and it works but then doesn't work on scrolling to the div. It just fades out once the page loads.
Here's my pen:
http://codepen.io/omarel/pen/ozRzZJ
HTML
<div class="wrapper">
div placeholder
</div>
<div class="wrapper1 wow fadeOut" data-wow-duration="2s" data-wow-delay="2s">
test fade out
</div>
CSS
.wrapper {
background-color: #fff;
height: 200px;
}
.wrapper1 {
background-color: #000;
height: 500px;
}
JS
new WOW().init();