Swiper中文论坛

标题: 为什么引入 Animate动画,第二页没有应啊 [打印本页]

作者: liwenhua    时间: 2016-9-20 15:50
标题: 为什么引入 Animate动画,第二页没有应啊
都是打开第一页的时候其余的几页全部加载,等第二页时便没有了反应

作者: 洞爷湖    时间: 2016-9-20 16:13
我用swiper-animate-twice 在uc,微信下都ok。 在360上就是不行。debug调试就可以。郁闷
作者: adkwen    时间: 2016-9-21 10:38
var mySwiper = new Swiper('.swiper',{
加入这段就行
                onInit: function(swiper){ //Swiper2.x的初始化是onFirstInit
                swiperAnimateCache(swiper); //隐藏动画元素
                swiperAnimate(swiper); //初始化完成开始动画
                },
                onSlideChangeEnd: function(swiper){
                swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画
                } , 到这
        pagination: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        spaceBetween: 30,
        effect: 'fade',
                loop:true,
                centeredSlides: true,
        autoplay:2500,
        autoplayDisableOnInteraction: false
    })




欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/) Powered by Discuz! X3.2