dropshado.ws

Front-end development minutiæ

by David DeSandro

Archive
RSS feed
Twitter
original Tumblr version

Animating max-height to overcome height:auto limitation

(this is probably not new, but just in case…) Q: How to transition to height:auto? A: Transition max-height instead! jsfiddle.net/leaverou/zwvNY/

— Lea Verou (@LeaVerou) May 15, 2011

via Brad Frost:

This technique is insanely badass. I use it for all my height-animating needs, including accordions.

25 Sep 2012
  • CSS
  • transitions
  • Lea Verou
  • Brad Frost
  • hasfiddle
Page of
  • desandro.com
  • @desandro
  • github.com/desandro
  • desandro’s JS Fiddles