# jquery-mvisiblejs

> An infinite scrool plugin for jQuery. Will be execute a callback whenever an element will be visible in the screen

Latest version **0.0.5** (published 2016-06-12) · LGPL license · 0 weekly downloads

## Install

```sh
npm install jquery-mvisiblejs
pnpm add jquery-mvisiblejs
yarn add jquery-mvisiblejs
bun add jquery-mvisiblejs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2016-06-12 |
| First published | 2016-05-10 |
| Weekly downloads | 0 |
| License | LGPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | michele.pagnin |

## Links

- npm: https://www.npmjs.com/package/jquery-mvisiblejs
- npm.io page: https://npm.io/package/jquery-mvisiblejs

## Recent versions

- 0.0.5 (latest) — 2016-06-12
- 0.0.4 — 2016-05-10
- 0.0.3 — 2016-05-10
- 0.0.2 — 2016-05-10
- 0.0.1 — 2016-05-10

## README

# jQuery - MVisibleJS
An infinite scrool plugin for jQuery. Will be execute a callback whenever an element will be visible in the screen

## Using
```html
<script type="text/javascript" src="dist/jquery-mvisiblejs.min.js"></script>
```

For a full example which explains how to use the library see _test_ folder.

```html

<div class="container"></div>
<div class="loader"></div>

<script>
$(".loader", {
    completely: false,  // if true, run the callback function only if the ".loader" element is completely visible
    hidden: false,      // if true, run the callback also if the element is not visible
    direction: 'both',  // 
}).mvisiblejs(function () {
    // do something
}); 
</script>

```

## Development
- Clone the repository
- Install NPM
- Install dev dependencies
```
npm install typings --global
```
- In the root of the project run:
```
npm install
```
And
```
typings install --ambient
```
To build run:
```
grunt
```

## History
- 0.0.5 - Added the option _scrollableElement_ to define what is the scrollable element on which calculate the offsets.

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