.delay()——延迟动画的执行
写法:元素.delay(毫秒数)
描述:延迟.animate()动画执行的时间
$(this).animate({width : 300} , 2000).delay(1000).animate({height : 300} , 2000); //元素的宽度变化后,延迟1s在执行高度的变化
写法:元素.delay(毫秒数)
描述:延迟.animate()动画执行的时间
$(this).animate({width : 300} , 2000).delay(1000).animate({height : 300} , 2000); //元素的宽度变化后,延迟1s在执行高度的变化