delay方法代表延迟,在动画执行完毕之后,执行延迟函数,在延迟之后再执行之后的动作。delay传入一个参数,该参数为延迟的时间
$(".one").animate({
width
: 300
}, 2000).delay(2000)
$(".one").animate({
height
: 300
}, 2000)
stop方法为停止动画的执行
$("div").stop()
$("div").stop(false)
$("div").stop(false, false)
$("div").stop(true)
$("div").stop(true, false)
$("div").stop(false, true)
$("div").stop(true, true)
转载请注明原文地址:https://tech.qufami.com/read-21980.html