4 ms·
I love css transitions, but ending a transition with "display: none" is somehow still a pain.
by jopsen 6y ago
I love css transitions, but ending a transition with "display: none" is somehow still a pain.
- ketzo 6y ago"opacity: 0;" if you don't want to actually remove the box from the page "display: none;" if you do though as with all things CSS, tends to be a bit easier said than done (this is sort of a wild shot in the dark guessing at what you're talking about, but I've done a lot of CSS and it feels like a good guess)
- inopinatus 6y agoI use visibility instead whenever possible, since visibility can be included directly in a transition property, making it ideal for toggles and modal backdrops.
- zodiakzz 6y agoThere's a workaround if you're open to using CSS animations. [1] 1: https://stackoverflow.com/a/9334132 https://stackoverflow.com/a/9334132