jQuery animate element reveal - bottom to top
Posted
by Jon Hadley
on Stack Overflow
See other posts from Stack Overflow
or by Jon Hadley
Published on 2010-06-03T15:25:38Z
Indexed on
2010/06/03
15:34 UTC
Read the original article
Hit count: 192
jQuery
I'm trying to animate a horizontal lists appearance. It's a top navigation bar.
The following works pretty well, but it animates in from the top (of, I assume, the ul) to the bottom.
How would animate bottom, up?
$("#topnavigation li").css({height:'0'}); // 'hide' it first
$("#topnavigation li", this).stop().animate({height:'23px'},{queue:false,duration:1000});
© Stack Overflow or respective owner