@css I often transition display: to none, but given CSS limitations, I use CSS transitions to make something full transparent over, say, 2 seconds. Then run a timeout to set the (now invisible) element to display: none at that point.
You might wonder, if it's invisible, who cares about display: none? Think about event handlers, for instance.
@css I often transition display: to none, but given CSS limitations, I use CSS transitions to make something full transparent over, say, 2 seconds. Then run a timeout to set the (now invisible) element to display: none at that point.
You might wonder, if it's invisible, who cares about display: none? Think about event handlers, for instance.