Firefox 中的 jquery 循环插件淡入淡出问题

发布于 2025-01-07 14:57:09 字数 653 浏览 2 评论 0原文

我正在使用 Cycle 插件来播放幻灯片。这些图像应该在过渡时相互淡入淡出。它在除 Firefox 之外的所有浏览器中都能正常工作。

在 Firefox 中,图像不会淡出,而是闪烁为黑色一秒钟,同时新图像在黑色之上淡出。我希望它们彼此淡入淡出,这在所有其他浏览器中都有效。

其他转换似乎运行正常。这只是褪色的问题。

有谁知道为什么会发生这种情况?

    $('#slider2').cycle({
      fx: 'fadeout',
      random: 1,
      timeout: 5000,    
      easing: 'easeInOutExpo',
      startingSlide: 2,
      speed: 1500,
});

编辑:原来这是 Firefox 10 中的一个已知错误。如果您阅读此线程,可以找到一个临时解决方案。 http:// /forums.asp.net/t/1767825.aspx/1?jQuery+cycle+插件+功能+broken+in+Firefox+10+0

I'm using the Cycle plugin for a slideshow. The images are supposed to crossfade into each other for the transitions. It is working properly in all browsers except firefox.

In firefox, the image doesn't fade out, but rather it flashes to black for a second while the new image fades on top of the black. I want them to fade into each other, which works in all the other browser.

The other transitions seem to be working properly. It's just this issue with the fade.

Does anyone have any ideas why this could be happening?

    $('#slider2').cycle({
      fx: 'fadeout',
      random: 1,
      timeout: 5000,    
      easing: 'easeInOutExpo',
      startingSlide: 2,
      speed: 1500,
});

Edit: Turns out this is a known bug in Firefox 10. There is a temporary solution if you read this thread. http://forums.asp.net/t/1767825.aspx/1?jQuery+cycle+plugin+functionality+broken+in+Firefox+10+0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文