JSFiddle - React, Tailwind, and code Playground

by emgee

HTML

<div id="fade" style="background-color:#66FFFF;width:500px;
height:100px;text-align:center;">
  This text should fade in and out
</div>

JavaScript

setInterval(function(){$("#fade").fadeToggle();}, 1500);