猫头鹰旋转木马动画未在Chrome中应用

时间:2015-03-31 17:26:33

标签: javascript jquery css html5 owl-carousel

我正在处理使用Owl Carouse 1.3.2的HTML5主题。我想在滑块图像过渡时应用淡入淡出动画。以下是我的代码,它在 Mozilla浏览器中运行良好,但 Chrome浏览器仍然显示简单的左右动画。

jQuery(window).load(function() {
    "use strict";
    jQuery("#layout").owlCarousel({
        pagination: false,
        autoPlay: 4000,
        slideSpeed: 600,
        transitionStyle: "fade",
        navigation: false,
        singleItem: true
    });
});

HTML代码:

<div id="layout" class="owl-carousel">
    <div class="item"><img src="sliders/slider_1.png" alt=""></div>
        <div class="item"><img src="sliders/slider_2.png" alt=""></div>
        <div class="item"><img src="sliders/slider_3.png" alt=""></div>
        <div class="item"><img src="sliders/slider_4.png" alt=""></div>
        <div class="item"><img src="sliders/slider_5.png" alt=""></div>
    </div>
</div>

我哪里错了?

1 个答案:

答案 0 :(得分:2)

owl.carousel.js line 806上更改:

support3d = (asSupport !== null && asSupport.length === 1);

要:

support3d = (asSupport !== null && asSupport.length > 0);

GitHub上有open bug