0.0.5 • Published 8 years ago

jquery-mvisiblejs v0.0.5

Weekly downloads
-
License
LGPL
Repository
-
Last release
8 years ago

jQuery - MVisibleJS

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

Using

<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.

<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.
0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago