I set the div's css
height:130px;
overflow:hidden;
I want an animation from current height to origin height like this , but I can't get the origin height.one posible way is after dom loaded , store the height in js,like this
$(function(){
$('.detail').data('originHeight',$('.detail').height());
$('.detail').css({height:'130px',overflow:'hidden'})
})
but doing this , the div will first show all , then set height to 130px.
any suggestions?