https://github.com/srph/jquery-element-scroll
[DEPRECATED] A basic jquery plugin that allows you to smooth scroll to the preceding / next element
https://github.com/srph/jquery-element-scroll
Last synced: 3 months ago
JSON representation
[DEPRECATED] A basic jquery plugin that allows you to smooth scroll to the preceding / next element
- Host: GitHub
- URL: https://github.com/srph/jquery-element-scroll
- Owner: srph
- Created: 2014-05-31T16:43:22.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-20T17:20:24.000Z (about 12 years ago)
- Last Synced: 2026-02-22T14:58:49.699Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 238 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jquery-element-scroll
=====================
A basic jquery plugin that allows you to smooth scroll to the preceding / next element
Intended to be used for 100% height divs (for SPAs) to imitate scrolling by
applications such as mediafire, etc.
Recommended to be paired with hidden body scroll bar,
however not implemented with this library for it is beyond the purpose
of this library.
Thinking of renaming this library to 'jquery-div-scroller'
## Instructions ##
To use, simply:
$('.my-element').elmScroll();
```elmScroll()``` accepts 1 int argument for custom scrolling speed
$('.my-element').elmScroll(700);
## Bower ##
bower install jquery-element-scroll
## Credits ##
See this [stackoverflow answer](http://stackoverflow.com/a/18953765)
## Example ##
See this [fiddle] (http://jsfiddle.net/dPWV8/1/)
## Other Libraries ##
[jquery-scroll-to] (http://demos.flesler.com/jquery/scrollTo/)
[jquery-smooth-scrolling] (https://github.com/kswedberg/jquery-smooth-scroll/)