1.0.0 • Published 6 years ago

jquery-on-scrolled-to v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

jquery-on-scrolled-to

jQuery plugin to execute code when specific element becomes visible.

I.e. when it reaches viewport, visitor scrolls to it or window resized so that element becomes visible.

Demo

https://wowpress.host/plugins/jquery-on-scrolled-to/

Install

Available via npm

npm install jquery-on-scrolled-to

Usage

Basic example

$('.my-div').onScrolledTo(0.5, function() {
   this.html('fired');
});

Where 0.5 is the portion of .my-div that has become visible before firing callback. Event is executed only once.

License

MIT