```bash
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
div{
width: 100px;
height: 100px;
background-color: #FFA500;
}
</style>
</head>
<body>
<div></div><br>
<button type="button" class="start">按钮</button> <button type="button" class="stop">停止</button>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(function(){
$(".start").on("click",function(){
$("div")
.animate({"width":"200px"})
.animate({"height":"200px"})
.animate({"left":"80px"},500)
.animate({"width":"100px"},700)
.animate({"height":"100px"},700)
.animate({"left":"0px"},700,function(){
alert("执行完毕");
})
})
$(".stop").on("click",function(){
$("div").stop(true)
})
})
</script>
</body>
</html>
来源:CSDN
作者:skf063316
链接:https://blog.csdn.net/skf063316/article/details/103910078