<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
div {
width: 200px;
height: 200px;
background-color: yellow;
margin: 50px auto;
}
</style>
</head>
<boby>
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
<div class="box4"></div>
<div class="box5"></div>
<script src="js/jquery-3.6.0.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script>
$(".box1").on("click", function() {
$(this).animate({
"width" : "300px",
"height" : "100px"
}, 2000);
});
$(".box2").on("click", function() {
$(this).animate({
"width" : "500px"
}, 1000, function() {
$(this).animate({
"height" : "300px"
})
});
});
$(".box3").on("click", function() {
$(this).animate({
"width" : "600px"
}, 1000, "easeOutBounce", function() {
});
});
$(".box5").on("mouseover", function() {
$(this).stop().animate({
"width" : "600px"
});
}).on("mouseout", function() {
$(this).stop().animate({
"width" : "200px"
});
});
</script>
</boby>
</html>