JSFiddle - React, Tailwind, and code Playground

HTML

<a class="blink" href="#"></a>

CSS

.blink {display:block; width:100px; height:100px; color:white; background:blue;}
@-webkit-keyframes blink {
    0% {opacity:1;}
    50% {opacity:0;}
    100% {opacity:1;}
}
.blink {
    -webkit-animation-delay: 0;
    -webkit-animation-duration: 5s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: blink;
    -webkit-animation-timing-function: ease-in-out;  
}
.blink:hover {background:red; 
/* should be set to 100% opacity as soon as the mouse enters the box; when the mouse exits the box, the original animation should resume. */
}