当前位置:网站首页>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
// }
// }
})
边栏推荐
- 百度网盘下载一直请求中问题解决
- 100 GIS practical application cases (XIV) -arcgis attribute connection and using Excel
- 线程调度的常用方法
- Troubleshooting steps for Oracle pool connection request timeout
- 线程的六种状态
- 一群骷髅在飞canvas动画js特效
- leetCode-929: 独特的电子邮件地址
- 静态链接库和动态链接库的区别
- CVPR 2022 Oral | 英伟达提出自适应token的高效视觉Transformer网络A-ViT,不重要的token可以提前停止计算
- 物联网?快来看 Arduino 上云啦
猜你喜欢

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

JS singleton mode

Machine learning perceptron and k-nearest neighbor

SQL Server AVG function rounding

uniapp实现点击拨打电话功能

Leetcode-498: diagonal traversal

6.套餐管理业务开发

4. classification management business development

Machine learning - principal component analysis (PCA)

自定义kindeditor编辑器的工具栏,items即去除不必要的工具栏或者保留部分工具栏
随机推荐
1.项目环境搭建
6.套餐管理业务开发
p5.js千纸鹤动画背景js特效
静态链接库和动态链接库的区别
Machine learning - principal component analysis (PCA)
分布式 | 如何与 DBLE 进行“秘密通话”
Groovy obtains Jenkins credentials through withcredentials
Desktop software development framework reward
2021-08-17
2022-06-23:给定一个非负数组,任意选择数字,使累加和最大且为7的倍数,返回最大累加和。 n比较大,10的5次方。 来自美团。3.26笔试。
leetCode-929: 独特的电子邮件地址
美国电子烟巨头 Juul 遭遇灭顶之灾,所有产品强制下架
Impdp leading schema message ora-31625 exception handling
tf.contrib.layers.batch_norm
JS proxy mode
tf.errors
2022-06-23: given a nonnegative array, select any number to make the maximum cumulative sum a multiple of 7, and return the maximum cumulative sum. N is larger, to the 5th power of 10. From meituan. 3
5.菜品管理业务开发
SQL Sever中的窗口函数row_number()rank()dense_rank()
5. dish management business development