
JavaScript
How To Do CSS Transitions With Height: Auto
Creating a smooth expand/collapse animation seems easy. Surely you can set a transition on height: auto, and it'll just work? Sadly, the CSS gods aren't so kind. Instead of the smooth open and close you wanted, your element flashes to its new height. No smooth animation. As it turns