blinkiing effect css code example
Example 1: css blink animation
.blink{
width:200px;
height: 50px;
background-color: magenta;
padding: 15px;
text-align: center;
line-height: 50px;
}
span{
font-size: 25px;
font-family: cursive;
color: white;
animation: blink 1s linear infinite;
}
@keyframes blink{
0%{opacity: 0;}
50%{opacity: .5;}
100%{opacity: 1;}
}
Example 2: blink css
.blink {
animation: blink 1s step-start infinite;
}
@keyframes blink {
50% {
opacity: 0;
}
}