jquery-on-scrolled-to
v1.0.0
Published
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.
Maintainers
Readme
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-toUsage
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
