Change the max-height from "none" to "100px", and back to "none":
This DIV element does not have a pre-defined height.
An animation will change the max-height, from "none" to "100px".
The height of this DIV element will not exceed 100 pixels.