JSFiddle - React, Tailwind, and code Playground
HTML
<div class="reachbottom">My Menu Bar</div>
CSS
body {
height:1600px;
}
.reachbottom {
display: none;
position: fixed;
bottom: 100;
width: 100%;
height: 60px;
border-top: 1px solid #000;
background: pink;
z-index: 1;
}
JavaScript
$(document).scroll(function () {
var y = $(this).scrollTop();
if (y > 50%) {
$('.reachbottom').fadeIn();
} else {
$('.reachbottom').fadeOut();
}
});