Honestly, until now I never noticed, but IE actually slows animated GIFs with more than 6-8 FPS (12-16ms/frame) down. For example, open this GIF in IE and in Chrome - you will see the difference:
.gif
My question is: Is there a way to fix this, let's say with a javascript? Or is there an alternative that's supported in all the major browsers? Except flash.
Edit: I know about APNG and MNG, but the support is not what one would expect.
Honestly, until now I never noticed, but IE actually slows animated GIFs with more than 6-8 FPS (12-16ms/frame) down. For example, open this GIF in IE and in Chrome - you will see the difference:
http://netanimations/Moving-picture-winged-dragon-animated-gif.gif
My question is: Is there a way to fix this, let's say with a javascript? Or is there an alternative that's supported in all the major browsers? Except flash.
Edit: I know about APNG and MNG, but the support is not what one would expect.
Share Improve this question edited Apr 22, 2012 at 1:21 Key-Six asked Apr 22, 2012 at 1:14 Key-SixKey-Six 2,4692 gold badges28 silver badges22 bronze badges2 Answers
Reset to default 7This is an old problem relating to how browsers implement small GIF file animation delays.
There is a better article about it here http://humpy77.deviantart./journal/Frame-Delay-Times-for-Animated-GIFs-240992090
A summary of that article is that: Don't use delays of 0-1 (hundredths of a second), avoid 2-5 if you like IE users. 0.06 seconds is the first cross-browser safe delay.
Alternatives include Flash, SVG, Canvas and the slightly more plicated but more cross-platform patible method of sending a different gif based on the user agent.
This behaviour has also been changed in IE10, it will now display GIF's up to 50FPS (2 hundredths of a second) I believe this brings it up to line with other browsers.
Silverlight is an alternative..
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744221171a4563788.html
评论列表(0条)