您的位置: 首页 > 文章 > swiper 动画, 基于swiper.js,可执行多种动画、可在loop模式下使用的swiper.animate.js swiper 动画, 基于swiper.js,可执行多种动画、可在loop模式下使用的swiper.animate.js 分类: 文章 • 2023-12-26 22:35:21 github:传送门 demo:传送门 引入模块并初始化 在需要运动的元素上面增加类名 ani ,swiper.animate需要指定几个参数: value: 切换效果,例如 fadeInUp delay: 动画延迟时间,例如 0.3s loop: 动画循环次数,例如 1 (0为无限次) duration: 动画持续时间,例如 0.5s