JSFiddle - React, Tailwind, and code Playground

by fillano

HTML

<button id="btn">
button
</button>
<div id="show">
Show
</div>

CSS

#show {
  line-height: 36px;
  height: 36px;
  width: 64px;
  border: solid 2px red;
  color: green;
  text-align: center;
  font-weight: bold;
  display: none;
}

JavaScript

$('#btn').click(function() {
	setTimeout(function() {
  	$('#show').css('display', 'block');
  }, 500);
})