I have a div of which collapse and expands using slideToggle and easing.
$(\'button\').click(function () {
$(\'div\').slideToggle(\'2000\', \"easeOutBoun
Not really. When the slide method is called, it gets the style property
display: none;
However, you may be able to dynamically fix it by using the callback function
$('div').slideToggle('2000', "easeOutBounce", function() {
$('div')[0].style.height="//whatever//" //You could also use the min-height property
$('div')[0].style.display="inline";
);
What exactly is the problem with animation?