Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

element-is-rendered

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

element-is-rendered

Checks if an element is visible by recursing up the node tree until it finds either the body or an element that is hidden. Returns a boolean.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

elementIsVisible

Checks if an element is visible by recursing up the node tree until it finds either the body or an element that is hidden. Returns a boolean.

Should work with all module loaders, I use it with require.js, I have not tested it with any of the other ones. I wrote this based on a stack overflow.. I did not like the answer and coudl not find a simple module to do this. http://stackoverflow.com/questions/178325/checking-if-an-element-is-hidden

It is used in the dom navigation library magic-focus-finder

install with bower:

bower install --save elementIsVisible

FAQs

Package last updated on 15 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts