Created
March 21, 2020 21:41
-
-
Save ademilter/3c41af192c018f9440ee98d7d2c8ac17 to your computer and use it in GitHub Desktop.
get element from point - javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const on_hover = e => { | |
const $target = document.elementFromPoint(e.clientX, e.clientY) | |
console.log($target) | |
} | |
document.body.addEventListener('mousemove', on_hover) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment