There is a block; when the mouse is pointed at this block, another block appears on top. I want to, if the cursor goes down, the block disappears, how to implement it?

  • Do you only want to achieve the effect when you move the cursor down? - AkaInq 2:41 pm

1 answer 1

Found on the Internet:

$("selector").mouseleave(function(e) { var $this = $(this); var bottom = $this.offset().top + $this.outerHeight(); if(e.pageY >= bottom){ $('selector').hide(); } });