Skip to content

Check whether HTML element is visible or not, supposed to cover all caveats (display, visibility, opacity, parent's overflow)

License

Notifications You must be signed in to change notification settings

alantos/is-element-visible

 
 

Repository files navigation

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);

About

Check whether HTML element is visible or not, supposed to cover all caveats (display, visibility, opacity, parent's overflow)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%