Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery animate() method</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function() { $("#btnstart").click(function(){ $("div").animate({ height: '+=200px', width: '+=200px' }); }); $("#btnstop").click(function(){ $("div").animate({ height: '-=200px', width: '-=200px' }); }); }); </script> <style type="text/css"> #animatebox { width: 100px; height: 100px; position: absolute; background: #FC5E5E; border-color: #de2d2d; } </style> </head> <body> <button id="btnstart">Start Animation</button> <button id="btnstop">Restore Animation</button> <br /><br /> <div id="animatebox"></div> </body> </html>
  Preview Arrow