【问题标题】:Owl Carousel cause blinking of youtube video猫头鹰旋转木马导致 youtube 视频闪烁
【发布时间】:2017-08-15 18:40:39
【问题描述】:

我在这个页面上有问题:http://wtgecommerce.powersoftware.in/land。 youtube 视频像刷新它一样闪烁。 我打开开发者控制台,我注意到这可能是由 Owl Carousel 引起的。 你可以在这里看到闪烁之前的代码:

之后:

为什么会这样?我该如何解决这个问题? 非常感谢。

【问题讨论】:

    标签: javascript jquery twitter-bootstrap youtube


    【解决方案1】:

    我认为这是由于淡入淡出动画造成的。

    删除 transitionStyle: "fade" 或在 owl.transitions.css 中注释这些行

    .owl-fade-out {
      z-index: 10;
      -webkit-animation: fadeOut .7s both ease;
      -moz-animation: fadeOut .7s both ease;
      animation: fadeOut .7s both ease;
    }
    .owl-fade-in {
      -webkit-animation: fadeIn .7s both ease;
      -moz-animation: fadeIn .7s both ease;
      animation: fadeIn .7s both ease;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-06-28
      • 1970-01-01
      • 2021-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-16
      相关资源
      最近更新 更多