JQuery animate div to change width - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:animate

Description

JQuery animate div to change width

Demo Code

ResultView the demo in separate window

<!doctype html>
<html>
 <head> 
  <title>Josue Espinosa</title> 
  <link href="style.css" rel="stylesheet" type="text/css"> 
  <script src="https://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> 
 </head> /*from   ww w  .j av a 2 s  .  c  om*/
 <body> 
  <div id="menu"> 
  </div> 
  <script type="text/javascript">
        $('#menu').hover(function () {
            $("#menu").stop().animate({ width: "300px" });
        });
    
      </script>  
 </body>
</html>

Related Tutorials