slideDown(speed, callback): Only the height is adjusted for this animation : slideDown « jQuery « JavaScript DHTML





slideDown(speed, callback): Only the height is adjusted for this animation

 

<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){

            $(document.body).click(function () {
              if ($("div:first").is(":hidden")) {
                $("div").slideDown("slow");
              } else {
                $("div").hide();
              }
            });


        });
    </script>

  </head>
  <body>
    <body>
          <div>asdf</div><div>asdf</div><div>asdf</div><div>asdf</div>
    </body>
</html>

   
  










Related examples in the same category

1.Hide and Slide down
2.Slide down and set focus
3.Slide down fast
4.Slide down form fields
5.Slide down in milliseconds
6.Slide down slowly
7.Slide to show para