leaning about jquery animation......
copy the code and paste it where you wanted to show animation in your website .
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("onload").onload(function(){
var div = $("div");
div.animate({height: '500px', opacity: '0.4'}, 5000);
div.animate({width: '1080px', opacity: '0.8'}, 4000);
});
});
</script>
</head>
<body>
<button>Start Animation</button>
<p>By default, all HTML elements have a static position, and cannot be moved. To manipulate the position, remember to first set the CSS position property of the element to relative, fixed, or absolute!</p>
<center>
<div style="background:#000;height:15px;width:45px;position:relative;"></div>
</center>
</body>
</html>
Tags:
jquery animation