I'm looking to animate the height of a dropdown menu using max-height. It's mostly working, but when it expands, the transition is not smooth. However, when I shrink it back down, the transition works fine.
You can check out the demo for the HTML and CSS (LESS) code I'm using. The animations are not functioning there, even though the code is the same as what you see in the GIF below.
https://i.sstatic.net/4MJ5I.gif
The height of the menu depends on its contents, which can vary between 1, 2, or 3 items, each defined with different classes.
Below is the CSS code snippet:
.content-management-dropdown {
// CSS properties here
}
For more guidance on animations, I referred to this tutorial video.
Any assistance with this issue would be greatly appreciated.