JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container">
</div>
<div id="container">
</div>
CSS
#container {
width: 50px;
height: 50px;
background: black;
}
JavaScript
(function fader() {
setInterval(function(){ $("#container").fadeToggle(); }, 100);
})();