Javascript Ajax jQuery Html PHP Example Quiz New MORE
Need a Website Or Web Application.Contact : +91 9437911966 (Whatsapp) Note: Paid Service

jQuery animate() method with example

The jQuery animate() method is used to add animation to HTML element using css properties.




<script src=""></script>
    $("#box").animate({width: "300px"});
    $("#box").animate({width: "100px"});
<button id="btn1">Animate Width</button>
<button id="btn2">Reset Width</button>
<div id="box" style="background:green;height:100px;width:100px;margin:6px;"></div>

Run it Yourself »