私は次のHTMLを持っています:
<div class="olympics" style="display: block; position: absolute; left: 250px; top: px;">
<a style="display: inline-block; float: left; height: 20px; margin: 5px;" href="#">Link 1</a>
<a style="display: inline-block; float: left; height: 20px; margin: 5px;" href="#">Link 2</a>
</div>
およびJS:
$('.olympics a').hover(function() {
$(this).animate({
backgroundColor: "#aa0000",
color: "#fff"
}, 1000);
}, function() {
$(this).animate({
backgroundColor: "#fff",
color: "#aa0000"
}, 1000);
});
このアニメーションが機能しない理由は何ですか?
jsfiddle デモはこちら: http://jsfiddle.net/Seefeld/NzhxH/13/