Lecture 117 - Animating Content - Animatingcontentdothtml
Lecture 117 - Animating Content - Animatingcontentdothtml
animatingcontent.html
!
!
<!doctype html>
<html>
<head>
<title>Learning jQuery</title>
<style>
#circle {
width:200px;
height:200px;
background-color:green;
border-radius:100px;
.square {
width:300px;
height:300px;
background-color:red;
margin-top:10px;
</style>
</head>
<body>
<div id="circle"></div>
<script>
$("#circle").click(function() {
$(this).animate({
width:"300px",
height:"300px",
borderRadius:"150px",
marginLeft:"100px",
marginTop:"100px"
},800);
});
</script>
</body>
</html>