learn jquery animation

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>
Anic_an_engineer

Hi, I am Anic an IT Professional . I like to share my knowledge and experience. Thanks for visiting my site.

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post