This might totally be a very stupid question, but I'm self-taught and I have a lot of questions.
I was playing with css animations and I wanted a blinking effect so I wrote: HTML:
<span class="blink">Blink</span>
CSS:
.box{
height: 500px;
width: 500px;
background: red;
animation: blink 1s linear 0s infinite;
}
@keyframes blink {
50%{
display: none;
}
}
but it wouldn't work, so I tried using opacity: 0;
and it worked, I'm just wondering why ? what's the difference ?
Thank you.