Можно ли анимировать -> css ('height', 'auto')?JQuery - Анимация высоты: авто
рабочий пример 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");
});
Заранее спасибо! Питер
Если вы хотите выскальзывания анимации вы должны взглянуть на JQuery UI: http://jqueryui.com/demos/effect/ –