JSFiddle - React, Tailwind, and code Playground

HTML

<div id="div1">That was amazing!</div>

CSS

#div1{
    height:200px;
    width:200px;
    background-color:Black;
float:left;
}

JavaScript

$('#div1').click(function (){
    $(this).animate({backgroundColor: '#FF0000'}, 1000);
});