简体   繁体   English

FlexSlider结巴/淡入淡出

[英]FlexSlider stutter/lag on fade

I am using Flexslider (the older version 1.0 with jquery 1.4.8 support) on the following test page: http://www.showstyle.lu/service/startv2/ 我在以下测试页面上使用Flexslider(支持jquery 1.4.8的较早版本1.0): http : //www.showstyle.lu/service/startv2/

As you can see the slider is implemented on the top left and bottom right images (in the upper part of the content). 如您所见,滑块在左上角和右下角图像中(在内容的上部)实现。 When I test this offline through dreamweaver there are no stutter effects or lag effects but in chrome/firefox/opera the fade effect begins but then rushes into the next slide in a quite awkward fashion. 当我通过Dreamweaver进行脱机测试时,没有任何卡顿效果或滞后效果,但是在chrome / firefox / opera中,淡入淡出效果开始了,但随后以一种非常尴尬的方式冲入下一张幻灯片。

It doesn't look smooth, in IE it doesn't fade at all but that's ok, it's IE afterall (rip IE) 它看起来不光滑,在IE中根本不褪色,但是没关系,毕竟是IE(rip IE)

I looked through Stackoverflow and plenty pages on google people mention that it is a float related issue across Firefox mainly and not many occurences in Chrome. 我查看了Stackoverflow,并在Google上的很多页面上提到,这主要是整个Firefox中与浮动相关的问题,而在Chrome中很少出现。

I looked through my sliders and inspected them & unticked various classes in the css to see if it would impact the fluidity of the slider but no luck so far so I can't really pinpoint the code that is interfering with the slider. 我查看了一下滑块并检查了它们,并检查了CSS中的各个类,以查看它是否会影响滑块的流动性,但到目前为止还没有运气,因此我无法真正查明干扰滑块的代码。

Any experience dealing with this? 有处理这个的经验吗?

Thanks in advance! 提前致谢!

I'm not sure this will help, but in your style.css you have this bit of code for slider transition: 我不确定这是否有帮助,但是在您的style.css中,您具有以下代码可用于滑块转换:

* {
-moz-transition: color 0.3s ease;
-webkit-transition: color 0.3s ease;
transition: color 0.3s ease;
transition: opacity .25s ease-in-out; */
-moz-transition: opacity .25s ease-in-out;
-webkit-transition: opacity 3s ease-in-out; */

} }

By removing the bottom 3 properties I was able to get a much smoother transition on your slider (did this by inspecting the element and editing CSS). 通过删除底部的3个属性,我可以在滑块上获得更加平滑的过渡(这是通过检查元素并编辑CSS来完成的)。 Therefore, if this section of your CSS was just this: 因此,如果CSS的这一部分就是这样:

* {
-moz-transition: color 0.3s ease;
-webkit-transition: color 0.3s ease;
transition: color 0.3s ease;

I think you'll get the smoother transition you're looking for. 我认为您会找到想要的更平滑过渡。 (This was done in Chrome, and have not tested other browsers). (这是在Chrome中完成的,尚未测试其他浏览器)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM