JSFiddle - React, Tailwind, and code Playground
HTML
<div id="el" style="width:100px; height:100px; background-color:#000"></div>
JavaScript
$("#el").animate({backgroundColor: "#ff0000" });
<div id="el" style="width:100px; height:100px; background-color:#000"></div>
$("#el").animate({backgroundColor: "#ff0000" });