CodeinWP CodeinWP

Animating max-height to overcome height:auto limitation

This is a great tip by Lea Verou about transitioning an element’s height. You’ll have problems if you try to transition from a length value to “auto”, so this is a great workaround with probably no drawbacks.

Go straight to the source >

Comments are closed.

Comments for this post are now closed.

Read the latest articles and tutorials if you'd like to have your say.