JSFiddle - React, Tailwind, and code Playground

HTML

<div id="foo"></div>

CSS

#foo { height: 30px; margin: 1em; }

JavaScript

$(function() {
    $("#foo").css('background', 'red');
    setTimeout(function() {     $("#foo").css('backgroundColor', 'transparent'); }, 1000);
});