jquery自定义动画

<html>
<head>

<script type="text/javascript" src=\'#\'" href="http://ajax.googleapis.com/ajax/libs">http://ajax.googleapis.com/ajax/libs
/jquery/1.4.0/jquery.min.js"></script>
</head>
<script type="text/javascript">
$(document).ready(function(){
  $("#start").click(function(){
  $("#box").animate({height:300},3000);
  $("#box").animate({width:300},3000);
  $("#box").animate({height:100},1000);
  $("#box").animate({width:100},5000);
  });
});
</script>
</head>
 
<body>

<p><a href="#" id="start">Start Animation</a></p>

<div id="box"
style="background:#98bf21;height:100px;width:100px;position:relative">
</div>
 
</body>
</html>
 

你可能感兴趣的:(jquery,动画)