I'm trying to achieve a fade-in effect with the CSS property display:block
.
Here's my HTML code:
<div>Fade</div>
And here's my CSS code:
div { display: none; transition: 2s; }
div:hover { display: block; }
Unfortunately, this is not working as expected. Does anyone know of an alternative way to create this fade-in effect?