0

See this question.

How to show popup message like in stackoverflow

I am trying to get the overhang to appear gracefully in jquery from the top, like someone is pulling the bottom of it and it all follows instead of having it fade in.

I cannot figure out how to do this in jQuery.

Can you help?

Community
  • 1
  • 1
yehuda
  • 1,254
  • 2
  • 11
  • 21

2 Answers2

1

Make use of slideToggle then.

http://jsfiddle.net/62HeB/1

Not sure how you are triggering it, so I used a button.

div {
    position: fixed; 
    top: 0; 
    width: 200px; 
    border: 1px solid gray; 
    background: lightgray; 
    border-radius: 0px 0px 5px 5px; 
    padding: 5px; 
    left: 50%;
    margin-left: -100px;
}
mrtsherman
  • 39,342
  • 23
  • 87
  • 111
1

This should work using Slide.

$(document).ready(function() {
        $("#message").slideDown("slow");
        $("#message a.close-notify").click(function() {
            $("#message").slideUp("slow");
            return false;
        });
    });
Andrea Turri
  • 6,480
  • 7
  • 37
  • 63