A selection of possible workarounds for animating CSS values with auto
keywords (e.g. height, width, etc.). Not a huge fan of the Flexbox option, but the max-height
trick is a very useful one to remember (it works with min-height
too, and you can use them in conjunction for some fun effects).
transition: max-height 500ms ease-out;