Skip to content

msmolev/bv-ui-pixels-displayed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bv-ui-pixels-displayed

NPM version

Build Status

Dependency Status

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.5%
  • HTML 8.5%