2013-06-12 22 views

回答

0

如果您已經安裝了jQuery的,這可能是相當簡單完成。

function animationComplete(){ 
    //Do Stuff 
} 
$("div").animate({width : 200, height: 500}, 3000, animationComplete) 
  • 這表示要運行動畫:{寬度:200,高度:500}
  • 這是三千毫秒(3秒):3000
  • 這是要運行的功能動畫完成後:animationComplete
+0

偉大的謝謝! – user2476424