1、自定義動(dòng)畫實(shí)例
<script>
$(function () {
$('button').click(function () {
$('div').animate({height:300},1000)
$('div').animate({width:300},1000)
$('div').animate({height:100},1000)
$('div').animate({width:100},1000)
})
})
</script>
2饿凛、自定義動(dòng)畫控制
$('div').stop(true)驶忌;【停止動(dòng)畫】
$('div').stop(false);【停止當(dāng)前運(yùn)行動(dòng)畫慰丛,執(zhí)行后面動(dòng)畫】
$('div').stop(false,true);【立即完成當(dāng)前動(dòng)畫惕耕,執(zhí)行后續(xù)動(dòng)畫】
$('div').stop(true,true);【立即完成當(dāng)前動(dòng)畫幸海,后續(xù)動(dòng)畫停止】