abstract:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title> jQuery 自定义动画-停止动画</title> <script type="text/javascript" src="jquery-3.3.1.mi
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> jQuery 自定义动画-停止动画</title>
<script type="text/javascript" src="jquery-3.3.1.min.js"></script>
<style type="text/css">
div{width:200px;height:200px;background:pink;position:absolute;color:#4505;}
</style>
<script type="text/javascript">
$(document).ready(function(){
$('.right').click(function(){
$('.box1').animate({left:'+1720px'},3000)
$('.box1').animate({fontSize:'30px'},3000)
})
$('.stop').click(function(){
$('.box1').stop(true)
})
})
</script>
</head>
<body>
<button class='right'>右移</button>
<button class="stop">停止</button>
<div class='box1'>学习停止动画</div>
</body>
</html>
Correcting teacher:韦小宝Correction time:2018-12-11 10:41:22
Teacher's summary:写的很不错!jquery中的动画还是挺好玩的!课后记得多练习哦!试着使用jquery来完成个轮播图