¿es posible animar -> css ('altura', 'auto')?Jquery - Animar a la altura: auto
ejemplo de trabajo http://www.jsfiddle.net/V9Euk/154/
CSS
#div1 {
position:absolute;
right:30px;
bottom:0px;
border:1px solid #ff0000;
overflow:hidden;
}
html
<div id="div1" style="height:20px;">
Test<hr />
text text <br />
text text <br />
text text <br />
</div>
jQuery
$("#div1").hover(
function() {
$('#div1').animate({
"height": "auto"
}, "fast"); // <---- dont work :(
}, function() {
$('#div1').animate({
"height": "20px"
}, "fast");
});
Gracias de antemano! Peter
Si desea una animación de deslizamiento hacia fuera usted debe echar un vistazo a jQuery UI: http://jqueryui.com/demos/effect/ –