.delay()——延迟动画的执行

写法:元素.delay(毫秒数)

描述:延迟.animate()动画执行的时间

$(this).animate({width : 300} , 2000).delay(1000).animate({height : 300} , 2000);  //元素的宽度变化后,延迟1s在执行高度的变化

 

posted @ 2017-05-26 17:06  念念念不忘  阅读(301)  评论(0)    收藏  举报