JSFiddle - React, Tailwind, and code Playground

HTML

<div style="height:100px;width:100px;background:red">animate this</div><br>

<input type="button" id="mybutton" value="start"/><br>

JavaScript

$("#mybutton").click(function(){
   $("div").animate({backgroundColor: 'blue'});
});