wordpressのドロップダウンメニューにアニメーションを追加しようとしています。私はこのコードを使用しています:
jQuery(function() {
jQuery("ul#menu-menu-1").hover(function() {
jQuery(this).find('ul.sub-menu')
.stop(true, true).delay(50).animate({ "height": "show", "opacity": "show" }, 200 );
}, function(){
jQuery(this).find('ul.sub-menu')
.stop(true, true).delay(50).animate({ "height": "hide", "opacity": "hide" }, 200 );
});
});
しかし、1) すでに「所定の位置にある」サブメニューが ON になり、2) 最初の親のサブメニューが代わりに 2 番目の親のサブメニューになります...