我正在使用wow.js
withanimate.js
在鼠标滚动上显示动画。
我想改变小设备上的动画方向,比如在大屏幕上它应该从右边开始动画,在小设备上它应该从底部开始动画。
这是一个片段来显示我需要什么。
new WOW().init();
<script src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css" rel="stylesheet"/>
<section class="wow fadeInRight" >Section 1</section>
<section class="wow fadeInUp" data-wow-delay="1s">Section 1 on mobile</section>