JSFiddle - React, Tailwind, and code Playground
by Curt
HTML
<div>
</div>
<div>
</div>
<div class="clear">
</div>
<div>
</div>
CSS
div
{
float:left;
width:200px;
height:200px;
background-color:#aad4ff;
margin:1px;
}
.clear
{
clear:left;
}
JavaScript
$(function(){
$("div").hover(function(){
$(this).animate({backgroundColor: "#498fff"}, 200);
}
,function(){
$(this).animate({backgroundColor: "#aad4ff"}, 200);
}
);
});