JSFiddle - React, Tailwind, and code Playground

by Anand Rathod

HTML

<script src="https://code.jquery.com/jquery-2.2.2.min.js"></script>

JavaScript

$(document).ready(function(){
        var mouseY = 0;
        var topValue = 0;
        window.addEventListener("mouseout",function(e){
            mouseY = e.clientY;
            if(mouseY<topValue) {
                alert("Do something here!!!");
            }
        },
        false);
    });