Professional Documents
Culture Documents
Animation 2
Animation 2
Animation 2
doctype html>
<head>
<script src="https://code.jquery.com/jquery-3.5.1.js" integrity="sha256-
QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" crossorigin="anonymous"></script>
</head>
<script>
$(document).ready(function(){
$("button").click(function(){
$("div").animate({left: '250px',
opacity: '0.5', height: '+=150px', width: '+=150px'
});
});
});
</script>
<body>
<p><div style="background-
color:red;height:100px;width:100px;position:relative;"></div></p>
<p><button>Start</button></p>
</body>
</html>