背景のマウスオーバーをアニメーション化するためにこのコードを作成しましたが、機能せず、他の背景を変更するだけで、関数を使用しても効果が表示されませんanimate
。
$(".b_header").mouseover(function() {
$(this).css("background-image","url(images/bot/head_down.png)");
/*
Also I've tried other effects and nothing
$(this).css( {backgroundPosition: "0 0"} );
$(this).animate(
{backgroundPosition:"(-20px -53px)"},
{duration:500});
*/
$(this).animate({ opacity: 5 }, 3000);
});