次のコードを使用して、ナビゲーション リンクのフォントの色をホバー/オフ ホバーでアニメーション化しようとしています。境界線の下の色は正しく変更されますが、フォントの色は変更されません。また、別の色の current-menu-item CSS ルールを破棄しています。フォントの色が黄色であるべき current-menu-item でない限り、マウスをホバーするとフォントの色が青色になり、ホバーをオフにするとオフホワイトに戻ることが望ましい動作です。私はこれについての初心者なので、私のスタイルの欠如を許してください。色をサポートするために jQuery UI ファイルを含めました。どんな助けでも大歓迎です。完全な例はここで見ることができますhttp://www.buenolisto.com/alma
JS
jQuery("li.social").hover(function(){
jQuery(this).find("img").stop(true, true).animate({'marginTop': "-=20px"}, 'fast');
}, function(){
jQuery(this).find("img").stop(true, true).animate({'marginTop': "+=20px"}, 'fast');
})
jQuery("li.reservas").hover(function(){
jQuery(this).find("img").stop(true, true).fadeOut({'marginTop': "-=30px"}, 'slow');
}, function(){
jQuery(this).find("img").stop(true, true).fadeIn({'marginTop': "+=30px"}, 'slow');
})
jQuery('ul.menu li a').hover(function() {
jQuery(this).stop(true, true).animate({'borderBottomColor': "#2E9ECE",'color': "#FEFEFE"}, 'slow');
}, function() {
jQuery(this).stop(true, true).animate({'borderBottomColor': "#FFDF85",'color': "#2E9ECE"}, 'fast');
})