【问题标题】:Why do webkit browsers animate randomly?为什么 webkit 浏览器会随机动画?
【发布时间】:2013-05-18 01:50:54
【问题描述】:

最近我注意到 jQuery 1.9+ 和 Cycle2 的一个问题,只有在 Webkit 浏览器中查看时。平铺效果应该从左到右平滑过渡:

<div id="slideshow" class="cycle-slideshow" data-cycle-pause-on-hover="true" data-cycle-tile-count="12" data-cycle-tile-delay="400" style="overflow: hidden;" data-cycle-fx="tileSlide" data-cycle-speed="600" data-cycle-timeout="3000" data-cycle-easing="linear">
        <img src="http://malsup.github.com/images/p1.jpg">
    <img src="http://malsup.github.com/images/p2.jpg">
    <img src="http://malsup.github.com/images/p3.jpg">
    <img src="http://malsup.github.com/images/p4.jpg">
</div>

正如您在 the jsfiddle 中看到的那样,这种随机性只发生在 Chrome、Chromium、Midori...Webkit 浏览器中。

【问题讨论】:

    标签: jquery google-chrome webkit jquery-1.9 jquery-cycle2


    【解决方案1】:

    不完全解释为什么会发生这种情况,但我注意到这在 jQuery 1.10.1 中不再是问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-01-22
      • 2013-07-27
      • 2013-02-18
      • 2015-08-12
      • 2016-04-14
      • 2014-12-18
      • 2010-10-15
      相关资源
      最近更新 更多