Firefox中的jQuery和CSS动画不稳定 [英] jQuery and CSS Animations Choppy in Firefox

查看:87
本文介绍了Firefox中的jQuery和CSS动画不稳定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发迷你网站,该功能具有许多jQuery动画.可以在Safari,Chrome和Amp;中正常运行IE9,但该动画在OSX的Firefox(7、8和9)中确实很不稳定.我以为CSS动画会更流畅,所以我已适应该网站的iPad版本,在Firefox中进行了尝试.似乎也很糟糕.

I'm working on a minisite that features a lot of jQuery animation. It works fine in Safari, Chrome & IE9, but the animation is really choppy in Firefox (7, 8 & 9) on OSX. I thought CSS animation would be smoother, so I adapted the iPad version of the site and tried that out in Firefox. It seems just as bad.

我没有花很多时间在Firefox上,所以我不确定在这里做错了什么.我是否需要触发GPU加速(例如在Webkit中使用translateZ(0)),还是仅在所有时间都使用它(例如IE9?),即使使用GPU,Firefox是否还不够强大?

I haven't spent a lot of time with Firefox, so I'm not sure what I'm doing wrong here. Do I need to trigger GPU acceleration (like using translateZ(0) in Webkit,) or is it just used all the time for everything (like IE9?) Is Firefox just not powerful enough, even with the GPU?

我将非常感谢我能提供的任何帮助.我有点想念这件事.

I'd really appreciate any help I can get. I'm kind of at the end of my rope on this.

推荐答案

经过相当多的环顾和提问后,Firefox似乎不像其他浏览器那样处理DOM动画.这样看来,我只需要使用断断续续的Firefox动画即可.

After a fair amount of looking around and asking questions, it seems that Firefox just doesn't handle DOM animation as well as the other browsers. So it looks like I'll just have to live with choppy Firefox animation.

这篇关于Firefox中的jQuery和CSS动画不稳定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆