2012-04-19 8 views

答えて

2

同じanimateコールでそれらを指定する:

$(this).animate({ 
    'backgroundColor':'red', 
    'color':'#fff' 
},600); 
+0

だから明らかです!ありがとうございました。 – UserIsCorrupt

+0

'.animate'で、' .toggleClass'のようなものがあればどうなりますか? – UserIsCorrupt

0

あなたのアニメーション文で変更する複数のものを指定することができるはずです。

$(this).animate({ 
    'backgroundColor':'red', 
    'color':'#fff' 
} ,600); 

それは.animate()ためthe documentationに権利があります。

関連する問題