jQuery.positionSticky
jQuery.positionSticky copied to clipboard
Sticky positioning polyfill for jQuery
jQuery.positionSticky
This is a jQuery plugin definition for the vanilla PositionSticky library. For code metrics, unit tests, issues please refer to the PositionSticky library.
Usage
-------------------------- => window
| -------------------- |
| | --- |==|=> container
| | | | | |
| | | |==|==|=> sticky
| | --- | |
| | | |
| | | |
| | | |
| | | |
| -------------------- |
| -------------------- |
| | | |
| | | |
$('#sticky').positionSticky();
Examples
- Simple usage
- Left floating elements
- Right floating elements
- Multiple floating elements
- Refresh functionality
- A sidebar example
Browser Support
- Chrome
- Firefox
- Safari
- IE9+