I am trying to add animation to the opening of a menu on my website. This is achieved by adjusting the max-height
property of the <div>
element that represents the menu, as well as changing the display
property.
The max-height
value is being changed from 4em
to none
. Initially, I had tried changing it to 500px
instead of none
, which resulted in the animation working properly. However, using none
seems to cause issues with the animation.
I'm wondering what mistake I might be making in this setup?