JSFiddle - React, Tailwind, and code Playground

HTML

<div id="el" style="width:100px; height:100px; background-color:#000"></div>

JavaScript

$("#el").animate({backgroundColor: "#ff0000" });