Skip to content

jQuery plugin to execute code when specific element becomes visible. I.e. when its first reaches viewport, visitor scrolls to it, window resized so that element becomes visible.

wowpress-host/jquery-on-scrolled-to

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

jQuery plugin to execute code when specific element becomes visible. I.e. when its first reaches viewport, visitor scrolls to it, window resized so that element becomes visible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published