JSFiddle - React, Tailwind, and code Playground
by chintansoni
HTML
<div id="someDiv">Your Text Here</div>
<input id="SomeButton" type="button" value="Start">
JavaScript
$(document).ready(function(){
$("#someDiv").hide();
$("#SomeButton").click(function(){
start();
});
});
function start()
{
$("#someDiv").show();
setTimeout(function () {
$("#someDiv").fadeOut(1000, function () { $(this).hide(); });
}, 2000);
}