1 つの jquery アニメーションを使用して要素の高さを 2 回変更したいのですが、できません。どうやってするの?
私はコードを使用しています:
$("#animate").click(function() {
$("#content")
.animate({"height": "200px"},{"queue": true, "duration": 500})
.animate({"width": "250px"}, {"queue": true, "duration": 500});
.animate({"height": "100px"},{"queue": true, "duration": 500})
});
そして、何も起こっていません..しかし、高さのアニメーションのいずれかを削除すると、正常に機能します。前もって感謝します..