Jquery font size animation problem in Chrome, too laggy

匆匆过客 提交于 2019-12-12 02:27:45

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/7425522/jquery-font-size-animation-problem-in-chrome-too-laggy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!