I'm trying to create a CSS only solution for blinking text. The text should say:
Researching...
and I'd like it to fade-in and fade-out, giving the impression to the user that it's researching at the same pace that a beating heart.
This is the code that I have so far:
HTML:
<p class="blinking">Researching...</p>
CSS:
.blinking {
transition: opacity 2s ease-in-out infinite;
opacity: 1;
}
@keyframes opacity {
0% {
opacity: 1;
}
50% {
opacity: 0.5
}
100% {
opacity: 0;
}
}
But this isn't working, also this is for a chrome extenson, so as long as it works in the latest version of chrome should be enough.