Skip to content

sarbbottam/is-invisible

Repository files navigation

is-invisible

Checks if a DOM element is truly invisible

Travis Codecov MIT License PRs Welcome

Acknowledgement

true-visibility by @jasonfarrell is the origin of this module.

Usage

npm i is-invisible --save
const isInvisible = require('is-invisible');

// either
Element.protoType.isInvisible = function() {
  return isInvisible(this);
}

// or
isInvisible(node);

Contributing

Please refer Contributing guidelines to enhance your contribution experience.