Possible Duplicate:
jquery animate background position
I got a button that should have a animation on the background element.
The arrow should slide down on hover and slide backup on hover out. This works fine on Chrome.
This animation is working properly in Chrome and IE8.
IE9: On hover the background just flips with no sliding effect. But on hover out, the sliding animation works.
FF: Nothing. No flick...
http://egelect.com/2013/index-test.php
Any suggestions?
HTML
<div id="bienvenue">Bienvenue<span id="separator"> </span></div>
jQuery
<script type="text/javascript">
$('document').ready(function() {
$('#bienvenue').css({backgroundPosition: "right 100%"}).hover(
function() {
$(this).stop().animate({'background-position-y': "0%"}, "600");
}, function() {
$(this).stop().animate({'background-position-y': "100%"}, "600");
}
);
});
</script>