Is there a way to set the CSS position to animate a box (inside) that is within another box (outside) that is not the same height as the inner box, in order to move it from the bottom to the top?
Here is what I have been attempting with animation:
$('#box-out').hover(function(){
$('#box-in').animate({height: '400px'},2000);
});
Currently, it expands downward on hover, but I want it to expand upward. In order to achieve this, I need to position it at the bottom of the outer box. How can I accomplish this?
Any suggestions or solutions would be appreciated. You can also check out the code here: http://jsfiddle.net/DxEMT/