Chrome中jquery字体大小的动画问题,太过迟缓 [英] Jquery font size animation problem in Chrome, too laggy

查看:194
本文介绍了Chrome中jquery字体大小的动画问题,太过迟缓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个小脚本,使得它们像来自遥远的文本一样,使用jquery和animate()函数。在IE和FireFox中一切正常,但在Chrome上非常滞后,就像是在丢帧一样。

您可以在这里测试并使用代码:
< a href =http://jsbin.com/ehahoc/7/ =nofollow> http://jsbin.com/ehahoc/7/

$ p

解决方案

我检查源和我的东西,螨couse的问题...
形式firefox的字体大小和不透明度的值是

0.0000(4位数字)

和chrome。

0.000000000000(12-14位数字)

和增加的一样:


0.0000000011

0.000000000124

0.000000000180
....

不知道这是否有帮助,或者如果这使得越野车。


I developed a little script that make texts like they were coming from far, with Jquery and animate() function. Everything works well in IE and FireFox but on Chrome is very laggy, like it was loosing frames.

You cand test and play with the code here: http://jsbin.com/ehahoc/7/

Many thanks!

解决方案

I check the source and i something that mite couse the problem... Form firefox the font size and the opacity values are

0.0000 (4 digits)

and in chrome...

0.000000000000 (12-14 digits)

and the increased like :

0.000000000011

0.000000000124

0.000000000180 ......

Don't know if this helps or if this makes it buggy.

这篇关于Chrome中jquery字体大小的动画问题,太过迟缓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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