Joop Schoolse
Joop Schoolse

Reputation: 125

Jquery horizontal slider not working firefox

<div id="animate" style="position: fixed; top: 150px; right: -1000px; width: 100%;height: 300px;"><A HREF="http://www.example.nl"><img src="http://www.example.nl/img/test.png"></a></div>
<script>
 $('#animate').animate({
right: '2000px',
}, 50000, function() {
// Animation complete.
});
</script>

Problem with this script is that if i run it in Chrome, it will slide from right to left. But as soon as i want to run it in FireFox, he is freezing, and not moving at all.

Thanks in forehand

Upvotes: 1

Views: 107

Answers (1)

supersize
supersize

Reputation: 14773

set the #animate to position: absolute; This should fix your problem!

edit: i provided a FIDDLE works good on firefox 21.

Upvotes: 1

Related Questions