Multipurpose jQuery Plugin For Sticky Elements - KeepInSight
File Size: | 19 KB |
---|---|
Views Total: | 762 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

Just another jQuery plugin that provides a simplest way to make any Html elements (navigation, sidebar, table header) stick to the top of the webpage while scrolling.
How to use it:
1. Load the jQuery KeepInSight plugin after jQuery library, but before the closing body tag.
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script> <script src="jquery.keepinsight.js"></script>
2. Call the plugin on the html elements to make anything stick at the top of the page when scrolled.
jQuery('header, table thead').keepInSight();
3. Destroy the plugin.
jQuery.keepInSight('destroy');
Change log:
2017-04-13
- Stickies are sorted in document order to make sure they always stack-up correctly.
2015-10-22
- 'keepInSight' can be switched off.
This awesome jQuery plugin is developed by powderblue. For more Advanced Usages, please check the demo page or visit the official website.