Reputation: 8574
I'm trying to make a div slide out upwards using jQuery.slideUp()
, however it seems like that is only for hiding an element, while .slideDown()
is for showing an element. I'm looking at the W3 Docs and there is no mention of if this is possible.
Does anybody know how I can make a div slide up and be shown?
Upvotes: 0
Views: 731
Reputation: 647
.slideUp()
, .slideDown()
, and .slideToggle()
are indeed for hiding/showing divs with a sliding transition. Have a look here: http://api.jquery.com/slideup/
If you want to move a displayed div around the page, I'm afraid there's nothing built-in to accomplish that, however it's relatively straight-forward to write an animate function. Have a look at the documentation here and w3school article.
Upvotes: 1