Home
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"> </script> <script> $(document).ready(function () { $('#myDiv').animate({ height: '200px', width: '200px' }); }); </script> <style> .redDiv { background-color: red; height: 100px; width: 100px; } </style> </head> <body> <h1>Demo: jQuery animate() method</h1> <div id="myDiv" class="redDiv"> </div> </body> </html>
Result: