JSFiddle - React, Tailwind, and code Playground
HTML
<div class="test" style="overflow-x: hidden; overflow-y: hidden; opacity: 1; background-color:rgb(238, 238, 238); ">some text</div>
CSS
.test {
-webkit-animation: glow 1s 6 alternate;
}
@-webkit-keyframes glow {
to {
background-color: red;
}
}
.test {
text-align: center;
font-family: sans-serif;
font-size: 40px;
line-height: 3;
}