@Call4julius
Posted
Nice work.
There is small problem with your transition
though.
The transition effect you added will not come into play because the browser only recognizes where to start, that is height: 0
, but doesn't know where to end it because of the height: max-content
. It will transit smoothly if you could set a final max-height
of say 8rem
.
Marked as helpful
@levinbaenninger
Posted
@Call4julius Thanks for your feedback! I corrected the mistake and now it works just as I expected.