Blinking only div not the inner html / text in pure CSS
Below code blinks everything:
.blinking {
animation: opacity 2s ease-in-out infinite;
opacity: 1;
}
.blue {
background-color: #0092dc;
}
.red {
background-color: red;
width: 30%;
}
@keyframes opacity {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 0;
}
}
<div class="blinking blue">Researching...
<div class="red">hi</div>
</div>
Blinking only div not the inner html / text in pure CSS
Blinking only div not the inner html / text in pure CSS