Skip to content
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');
$'oHeight',$selector.height()).css('height','auto').data('nHeight',$selector.height()).height($'oHeight')).animate({height: $'nHeight')},400);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.