https://github.com/nielse63/jquery.scrollend
A jQuery plugin to bind handlers to a scroll end event.
https://github.com/nielse63/jquery.scrollend
Last synced: about 1 month ago
JSON representation
A jQuery plugin to bind handlers to a scroll end event.
- Host: GitHub
- URL: https://github.com/nielse63/jquery.scrollend
- Owner: nielse63
- License: mit
- Created: 2015-08-16T02:43:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-05-02T06:47:19.000Z (about 3 years ago)
- Last Synced: 2025-03-18T20:54:06.502Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://nielse63.github.io/jquery.scrollend/
- Size: 2.93 MB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### jQuery scrollend
A jQuery plugin that allows for window scroll-start event handling.
## Demo
See the demo here.
## Usage
Include both the jQuery library and the scrollend plugin in your project:
```
```
Execute the scrollend method to an element, instatiate options (if so desired), and run a callback functions:
```js
$(window).scrollend({
delay : 250
}, function() {
// ...
});
```Or bind an element to the event, passing in options and event handler:
```js
$(window).on('scrollend', 250, function() {
// ...
});
```If you want to use the default delay setting of 250ms, simply don't include the options object:
```js
$(window).scrollend(function() {
// ...
});
```## Options
The only option available is the delay time (in milliseconds) to execute the callback after the browser has stopped being resized. The default value is 250ms. This can be passed as either a number or object:
```js
// As a number
$(window).on('scrollend', 250, function() {
// ...
});// As an object
$(window).on('scrollend', { delay : 250 }, function() {
// ...
});
```## License
This plugin is licensed under the MIT license. A copy of the license is included in this package.
[](https://bitdeli.com/free "Bitdeli Badge")