问题
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