public
Last active

Animating an element from a fixed height to "auto" height using jQuery

  • Download Gist
reveal.js
JavaScript
1 2
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);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.