JSFiddle - React, Tailwind, and code Playground
HTML
<div id="alert">lll </div>
CSS
#alert {color: #39f !important;}
@-webkit-keyframes colours {
0% {color: #39f;}
25% {color: #8bc5d1;}
50% {color: #f8cb4a;}
75% {color: #8bc5d1;}
100% {color: #39f;}
}
@-moz-keyframes colours {
0% {color: #39f;}
25% {color: #8bc5d1;}
50% {color: #f8cb4a;}
75% {color: #8bc5d1;}
100% {color: #39f;}
}
#alert {
-webkit-animation-direction: normal;
-webkit-animation-duration: 10s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-name: colours;
-webkit-animation-timing-function: ease;
-moz-animation-direction: normal;
-moz-animation-duration: 10s;
-moz-animation-iteration-count: infinite;
-moz-animation-name: colours;
-moz-animation-timing-function: ease;
}