Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konapun/jquery.sticky-scroll.js
Make an element stick to the top or bottom of the page as the page scrolls
https://github.com/konapun/jquery.sticky-scroll.js
Last synced: 22 days ago
JSON representation
Make an element stick to the top or bottom of the page as the page scrolls
- Host: GitHub
- URL: https://github.com/konapun/jquery.sticky-scroll.js
- Owner: konapun
- Created: 2013-10-31T18:19:49.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-27T20:39:12.000Z (over 10 years ago)
- Last Synced: 2024-04-14T19:58:14.869Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jquery.sticky-scroll.js
Make an element scroll with the page, optionally containing a pin/unpin element### HTML
```html
Gonna scroll with the page!
```### Javascript
```js
$('.sticky-header').stickyScroll({
stick: $('#unstick-button'),
unstick: $('#stick-button')
});
```### Positioning
You can also make an element stick to the top or bottom of the page by adding the class `stick-top` or `stick-bottom` to your sticky element