SlideUp or Slidedown only controls the height of the elements. If you want to move content inside this managed element, you need to create a custom animation.
Run the animation on the outside, which controls the height, and the second animation on the inside, which controls the css top property.
<div class="outer">
<div class="inner">
</div>
</div>
Otherwise, you can set the position of the internal absolute value at the bottom of the external something like this .
.outer {
position:relative;
height:200px;
display:none;
width:300px;
overflow:hidden;
}
.outer > .inner {
position:absolute;
width:300px;
height:200px;
background-color:red;
bottom:0px;
}
<div class="outer">
<div class="inner">
Content<br />Content<br />Content
</div>
</div>
Nando source
share