+ 8
Aha! Thatâs because the element is still under there, just you canât see it. Maybe play around with the height property and the opacity property so that the box for all the list items gets bigger, and thereâs more space. A bit confusing, so hereâs an example: https://code.sololearn.com/W7v5Pmo7E183/?ref=app
+ 6
The display property canât animate, so I would do something like opacity: 0; and opacity: 1;. And, the transition-duration property must be for the child elements, not the parent.
+ 2
FlyiiingDani you can add the css property âpointer-events: none;â to the child element. Then change it to âautoâ when the parent is hovered, this is to make sure the child isnât hidden once the mouse leaves the parent.