JSFiddle - React, Tailwind, and code Playground

by sushilbharwani

HTML

<div id="message" style="display:none;">
Your Data Was Successfully Saved!!!
</div>

CSS

#message{
  width:500px;
  height:40px;
  background-color: lightblue;
  margin:20px;
  padding:20px;
  color:white;
  font-size:18px;
  border-radius:5px;
}

JavaScript

jQuery("#message").fadeIn("900000");
setTimeout(function(){$('#message').fadeOut();}, 2000);