Skip to content

Instantly share code, notes, and snippets.

@timhettler
timhettler / reveal.js
Created March 12, 2012 16:24
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);