JSFiddle - React, Tailwind, and code Playground
HTML
<div id="bla"></div>
CSS
#bla {
width:400px;
height:400px;
background-color:rgba(0 0 0 0);
}
#bla:hover{
background-color:red !important;
}
JavaScript
setTimeout(function() {
document.getElementById('bla').style.backgroundColor="green";
},2000)