Animation Example2 jquery

Satyapriyanayak
Posted by Satyapriyanayak under jQuery category on | Points: 40 | Views : 1011
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript" src="jquery-1.6.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//$("button").click(function(){
$("#div_adv").delay(2000);

$("#div_adv").animate({height:"300px"},"slow");
$("#div_adv").animate({width:"600px"},"slow");

$("#div_adv").animate({left:"100px"},"slow");
$("#div_adv").animate({top:"100px"},"slow");

$("#div_adv").animate({fontSize:"3em"},"slow");

$("#div_adv").delay(20000);

$("#div_adv").animate({height:"100px"},"slow");
$("#div_adv").animate({width:"200px"},"slow");

$("#div_adv").animate({fontSize:"1em"},"slow");

$("#div_adv").animate({left:"0px"},"slow");
$("#div_adv").animate({top:"0px"},"slow");

});
</script>
</head>
<body>

<button>Start Animation</button>
<br /><br />
<div id="div_adv" style="background:#98bf21;height:100px;width:200px;position:relative">HELLO</div>
</body>
</html>

Comments or Responses

Login to post response