Create a gist now

Instantly share code, notes, and snippets.

Animating an element from a fixed height to "auto" height using jQuery
var $selector = $('div');
$selector.data('oHeight',$selector.height()).css('height','auto').data('nHeight',$selector.height()).height($selector.data('oHeight')).animate({height: $selector.data('nHeight')},400);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment