-
Notifications
You must be signed in to change notification settings - Fork 0
isVisible
Mike Byrne edited this page Mar 14, 2023
·
1 revision
Introduced 3.1.0
Reports if an element is visible or not - not necessarily within the viewport but generally is the element visible somewhere on the page.
- nothing
- el - required - DOM node to test
- boolean of visibility status
let button = document.querySelector('button');
let buttonVisible = isVisible(button); // true/false