bv-ui-pixels-displayed
v1.0.0
Published
A module for detecting whether an element is visible
Downloads
5
Maintainers
Keywords
Readme
bv-ui-pixels-displayed
A module for detecting whether an element is visible.
Install
$ npm install --save bv-ui-pixels-displayed
Usage
var bvUIPixelsDisplayed = require('bv-ui-pixels-displayed');
var pixelsDisplayed = bvUIPixelsDisplayed(window, document);
if (pixelsDisplayed(element) > 0) {
// element is visible
}
License
MIT © Bazaarvoice