swiper 动画, 基于swiper.js,可执行多种动画、可在loop模式下使用的swiper.animate.js

github:传送门
demo:传送门

引入模块并初始化

在需要运动的元素上面增加类名 ani ,swiper.animate需要指定几个参数:

value: 切换效果,例如 fadeInUp

delay: 动画延迟时间,例如 0.3s

loop: 动画循环次数,例如 1 (0为无限次)

duration: 动画持续时间,例如 0.5s

swiper 动画, 基于swiper.js,可执行多种动画、可在loop模式下使用的swiper.animate.js
swiper 动画, 基于swiper.js,可执行多种动画、可在loop模式下使用的swiper.animate.js