Does anyone know why this very simple jquery animation works perfectly in some browsers like Chrome and seems to be bugged in Firefox 7.0.1? Here's a link to the animation. If you try it in Firefox you'll see that the animation sometimes freezes then restarts. As you can see the code is very simple, only one animation, no images, and inline CSS.
html:
<div id="content" style="position: relative;width: 500px;height: 500px;overflow: hidden;">
<ul id="slider" style="position: absolute;top:0;left:0;">
<li style="background-color: red;height: 500px;width: 500px;list-style-type: none;"></li>
<li style="background-color: green;height: 500px;width: 500px;list-style-type: none;"></li>
<li style="background-color: blue;height: 500px;width: 500px;list-style-type: none;"></li>
</ul>
</div>
JS:
$(document).ready(function () {
to_move=$('#slider');
to_move.animate({
top: "-1000px"
}, 15000,'linear');
});
Thanks you for your help.