npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

element-is-rendered

1.0.0 • Public • Published

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

Keywords

none

install

npm i element-is-rendered

Downloadsweekly downloads

2

version

1.0.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability