JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<div id="search_tab"></div>
</div>
CSS
div{
height: 1000px;
width: 400px;
}
#search_tab{
background: red;
}
JavaScript
var timer;
$(window).scroll(function(e){
clearTimeout(timer);
$('#search_tab').fadeOut('slow');
timer = setTimeout(checkStop,150);
});
function checkStop(){
$('#search_tab').fadeIn('slow');
}