700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > wow.js结合animate.css实现滚动页面触发animate动画效果

wow.js结合animate.css实现滚动页面触发animate动画效果

时间:2024-03-18 03:54:36

相关推荐

wow.js结合animate.css实现滚动页面触发animate动画效果

animate.css

/

wow.js

https://wowjs.uk/docs.html

/graingert/wow

/download/tang05709/10427059

引入animate和wow

<link href="css/swiper-4.2.6.min.css" rel="stylesheet" />

<link href="css/animate.min.css" rel="stylesheet" />

<script src="js/swiper-4.2.6.min.js"></script>

<script src="js/swiper.animate1.0.3.min.js"></script>

<script src="js/wow.min.js"></script>

在需要的节点dom上使用class

<div class="ani wow animated fadeInUp contact-form mt30" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="1.8s">

</div>

然后初始化wow

new WOW().init();

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。