is-element-visible

1.0.1 • Public • Published

is-element-visible

Checks if a DOM element is really visible. This repo is suppose to cover all caveats (display, opacity, visibility, overflow), so any suggestions/help/PR would be appreaciated.

No jQuery or any dependencies needed at all, just pure JS here :)

Install

npm i is-element-visible

Usage

import isVisible from 'is-element-visible';
 
const el = document.getElementById('id');
isVisible(el);

Package Sidebar

Install

npm i is-element-visible

Weekly Downloads

18

Version

1.0.1

License

ISC

Unpacked Size

6.87 kB

Total Files

8

Last publish

Collaborators

  • luizasfight