# isvisible

> Check if the element is visible and clickable

Latest version **1.0.6** (published 2015-03-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install isvisible
pnpm add isvisible
yarn add isvisible
bun add isvisible
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2015-03-19 |
| First published | 2015-03-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | chunpu |
| Maintainers | ftft1885 |
| Keywords | ad |

## Links

- npm: https://www.npmjs.com/package/isvisible
- Repository: https://github.com/chunpu/is-visible
- Issues: https://github.com/chunpu/is-visible/issues
- npm.io page: https://npm.io/package/isvisible

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.0.6 (latest) — 2015-03-19
- 1.0.5 — 2015-03-18
- 1.0.4 — 2015-03-18
- 1.0.3 — 2015-03-18
- 1.0.1 — 2015-03-18
- 1.0.0 — 2015-03-18

## README

isvisible
===

[![Build status][travis-image]][travis-url]
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][downloads-url]
[![Dependency Status][david-image]][david-url]
[npm-image]: https://img.shields.io/npm/v/isvisible.svg?style=flat-square
[npm-url]: https://npmjs.org/package/isvisible
[downloads-image]: http://img.shields.io/npm/dm/isvisible.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/isvisible
[david-image]: http://img.shields.io/david/chunpu/is-visible.svg?style=flat-square
[david-url]: https://david-dm.org/chunpu/is-visible


Check if the element is visible and clickable

Installation
---

```sh
npm i isvisible
```

Usage
---

`isVisible` will check if a element is

- `overflow: hidden` by parent node
- `opacity: 0` on self or parent node
- `display: none` `visibility: hidden` `hidden: true` on self or parent node
- Covered by other element

Use with [browserify](https://github.com/substack/node-browserify)

```js
var isVisible = require('isvisible')
console.log(isVisible(element))
```

Use [isvisible.js](browser/browser.js) Directly <https://cdn.rawgit.com/chunpu/is-visible/gh-pages/browser/browser.js>


Advanced
---

Check strictly

```js
isVisible(element, true)
```

strict check will check

- `opacity > 0.9`
- top left point and mid point is not covered by other element

Support
---

Firefox, Chrome... even IE6+

> IE9- cannot support opacicy set inherit from parent check


Where to Use
---

Make sure your **AD** and **Promotion** are really show in web pages

License
---

[![License][license-image]][license-url]

[travis-image]: https://img.shields.io/travis/chunpu/is-visible.svg?style=flat-square
[travis-url]: https://travis-ci.org/chunpu/is-visible
[license-image]: http://img.shields.io/npm/l/isvisible.svg?style=flat-square
[license-url]: #

---
_Source: https://npm.io/package/isvisible · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
