OwlCarousel舞台具有淡入和淡出效果的填充项目

时间:2018-09-28 09:40:55

标签: jquery owl-carousel

我对owlCarousel有疑问,需要您的帮助。

我使用此脚本来显示带有fadeIn和fadeOut效果的stagePadding:

$owl = $('.owl-carousel.cat_1');
        $owl.owlCarousel({
            loop: true,
            navigation: true,
            margin: 0,
            autoplay: true,
            center: true,
            autoplayTimeout: 6000,
            autoplaySpeed: 1500,
            responsiveClass: true,
            animateIn: 'fadeIn',
            animateOut: 'fadeOut',
            responsive: {
                0: {
                    margin: 0,
                    loop: true,
                    items: 1,
                    center: true,
                    stagePadding: 0
                },
                1800: {
                    margin: 0,
                    loop: true,
                    items: 1,
                    center: true,
                    stagePadding: 360
                }
            }
        });

我的问题是,上一项和下一项在更改时没有淡入和淡出效果。仅中心项目具有此效果。如何为两个出现的项目添加效果。非常感谢。

enter image description here

0 个答案:

没有答案