JQuery Animate.
Posted
by Oliver
on Stack Overflow
See other posts from Stack Overflow
or by Oliver
Published on 2010-06-02T11:32:04Z
Indexed on
2010/06/02
11:33 UTC
Read the original article
Hit count: 222
Hi
Really easy, I'm sure...
I have a div which is the full screen and I want it to slide down from the top to the bottom.
I have this: $('#full-screen').animate({
"bottom":0,
height: 'toggle'
}, 1000, function() {
// Animation complete.
});
But this is the wrong way round as the bottom moves up; how do I get the bottom to stay where is is and the top to slide down to meet it?
Thanks
© Stack Overflow or respective owner