@ray-makSubmitted 10 months ago
Why is there a slight delay when I contract the menu?
Why is there a slight delay when I contract the menu?
This is great, thanks for inspiration on the smooth animations with just CSS! And I like the way you are using :after and keeping JavaScript so simple. I am going to modify my own based on yours.
And as for why there's a delay: it's because your max-height is set too high, so I think it tries to transition from that max-height to 0, causing the delay. Try setting it lower and that should help!