🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

element-pixels-visible

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

element-pixels-visible

How many pixels of an element is visible in the viewport

0.0.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

element-pixels-visible

A method for getting the number of pixles of an element that is visible inside the browser.

build status Sauce Test Status modules status

npm badge

Usage

Pass an Element to the method to get the number of pixels visible.

elementPixelsVisible(document.getElementById('#foo'));

Attribution

This project is based on bv-ui-pixels-displayed with added support for IE8.

License

MIT

FAQs

Package last updated on 10 Jun 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