jQuery SlideUp...But dont disappear off screen

Posted by danit on Stack Overflow See other posts from Stack Overflow or by danit
Published on 2010-03-26T13:30:22Z Indexed on 2010/03/26 13:33 UTC
Read the original article Hit count: 439

Filed under:

Is it possible to use .slideUp, but the object only slideUp by (For instance) by 20px instead of disappearing off screen?

HTML:

<div class="toolbar">
  <p>Hide</p>
   <ul>
    <li>Tab 1</li>
    <li>Tab 2</li>
   </ul>
</div>

JQUERY:

$(".toolbar p").click(function() {
    $(".toolbar").slideUp(); 
});

© Stack Overflow or respective owner

Related posts about jQuery