<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style type="text/css">
div{
width: 50px;
height: 50px;
background-color: lightskyblue;
}
</style>
<script src="../js/jquery-3.5.1.js"></script>
<script>
//队列动画
//.animate().animate() 累积的方式
$(function () {
$("div").click(function () {
$(this).animate({"width":"+=30px"},1000)
.animate({"height":"+=30px"},1500);
});
});
</script>
</head>
<body>
<div></div>
</body>
</html>