Skip to content

LuizAsFight/is-element-visible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

 
 
 

Contributors