@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.

Sign in to participate in the conversation
小森林

每个人都有属于自己的一片森林,也许我们从来不曾走过,但它一直在那里,总会在那里。迷失的人迷失了,相逢的人会再相逢。愿这里,成为属于你的小森林。