当前位置:网站首页>How can I solve the problem that the swiper animation animation fails when switching between left and right rotations of the swiper?
How can I solve the problem that the swiper animation animation fails when switching between left and right rotations of the swiper?
2022-06-24 10:17:00 【Ma Xiaotiao coding】
Website development , Yes swiper3 and animate Animation :
Now to achieve the following effect : When scrolling each page , Also run the text animation of the current page .
html Code :
swiper The configuration is as follows :
// banner-swiper
var bannerSwiper = new Swiper('.banner-swiper', {
pagination: '.banner_pag',
loop: true,
autoplay: 3000,
grabCursor: true,
paginationClickable: true,
keyboardControl: true,
//swiper3 When switching between pages , Also run animation .
onInit: function(swiper) {
//Swiper2.x The initialization of is onFirstInit
swiperAnimateCache(swiper); // Hide animation elements
swiperAnimate(swiper); // Initialization complete start animation
},
onSlideChangeEnd: function(swiper) {
swiperAnimate(swiper); // Every slide At the end of the switch, the current slide Animation
}
//swiper5 Configuration of :
// on: {
// init: function() {
// swiperAnimateCache(this); // Hide animation elements
// swiperAnimate(this); // Initialization complete start animation
// },
// slideChangeTransitionEnd: function() {
// swiperAnimate(this); // Every slide At the end of the switch, the current slide Animation
// //this.slides.eq(this.activeIndex).find('.ani').removeClass('ani'); The animation is displayed only once , Remove ani Class name
// }
// }
})
边栏推荐
- 静态链接库和动态链接库的区别
- leetCode-498: 对角线遍历
- Development of anti fleeing marketing software for health products
- Role of message queuing
- SQL sever试题求最晚入职日期
- 2.登陆退出功能开发
- How to manage massive network infrastructure?
- Graffiti smart brings a variety of heavy smart lighting solutions to the 2022 American International Lighting Exhibition
- canvas无限扫描js特效代码
- 3.员工的增删改查
猜你喜欢

4.分类管理业务开发

Leetcode - 498: traversée diagonale

Internet of things? Come and see Arduino on the cloud

Binary tree part I

canvas无限扫描js特效代码

形状变化loader加载jsjs特效代码

Floating point notation (summarized from cs61c and CMU CSAPP)

Using pandas to read SQL server data table

SQL Sever关于like操作符(包括字段数据自动填充空格问题)

411 stack and queue (20. valid parentheses, 1047. delete all adjacent duplicates in the string, 150. inverse Polish expression evaluation, 239. sliding window maximum, 347. the first k high-frequency
随机推荐
3.员工的增删改查
Three ways to use applicationcontextinitializer
canvas管道动画js特效
Which of the top ten securities companies has the lowest Commission and is the safest and most reliable? Do you know anything
学习整理在php中使用KindEditor富文本编辑器
leetCode-1051: 高度检查器
线程的六种状态
2. login and exit function development
机器学习——主成分分析(PCA)
学习使用phpstripslashe函数去除反斜杠
Producer / consumer model
413 binary tree Foundation
dedecms模板文件讲解以及首页标签替换
JS singleton mode
大中型企业如何构建自己的监控体系
How does home office manage the data center network infrastructure?
Regular matching mobile number
形状变化loader加载jsjs特效代码
H5网页如何在微信中自定义分享链接
oracle池式连接请求超时问题排查步骤