我正在使用 animate.css 和 wow.js 在滚动时淡出一个 div,但它会淡出然后又回来。我希望它淡出并远离。
我尝试添加“动画”类,它可以工作,但不能滚动到 div。它只是在页面加载后淡出。
这是我的笔:
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();