JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
CSS
div
{
width:100px;
height:100px;
background:red;
}
div:hover {
animation:myfirst 1s;
-webkit-animation:myfirst 1s; /* Safari and Chrome */
}
@keyframes myfirst
{
from {background:yellow;}
to {background:yellow;}
}
@-webkit-keyframes myfirst /* Safari and Chrome */
{
from {background:yellow;}
to {background:yellow;}
}