JSFiddle - React, Tailwind, and code Playground

by Anand Rathod

HTML

<div id="mystuff">mystuff</div>

JavaScript

$('#mystuff').hide();
var mouseLastYPos = null;
$(document).mousemove(function(e){ 
    if(mouseLastYPos){ 
        if (e.pageY < mouseLastYPos && e.pageY <= 2){
    				alert('in');
           $('#mystuff').show();
    
        }
    }
    mouseLastYPos = e.pageY;
});