JSFiddle - React, Tailwind, and code Playground
HTML
<div class="tooltipleft" id="tooltip">
<span id="code"></span>
<span id="price"></span>
</div>
CSS
div {
width: 100px;
height: 100px;
border: 1px solid red;
display: none;
background: red;
}
JavaScript
$(function () {
$('.tooltipleft').fadeIn('slow', function () {
$(this).delay(5000).fadeOut('slow');
});
});