Skip to content
A module for detecting whether an element is visible.
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.jshintrc
.travis.yml
.yo-rc.json
Gruntfile.js
LICENSE.md
OWNERS
README.md
bower.json
index.js
package.json

README.md

bv-ui-pixels-displayed

NPM version

Build Status

Dependency Status

A module for detecting whether an element is visible.

⚠️ This functionality has been added to bv-ui-core and all further improvements/changes will be carried out in bv-ui-core repository.

Please consider using bv-ui-core version 0.6.0 or later.

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

You can’t perform that action at this time.