JSFiddle - React, Tailwind, and code Playground
HTML
<div class="sample">
</div>
<div class="sample">
</div>
CSS
.sample {
width:200px;
height:200px;
background: #aaa;
}
JavaScript
setInterval(function(){
$(".sample").css("background", "");
$(".sample:hover").css("background", "yellow");
}, 200);