Yet Another Sticky Element Plugin For jQuery - sticky.js
File Size: | 2.95KB |
---|---|
Views Total: | 1076 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

sticky.js is a simple but widely-used jQuery plugin that enables you to stick any element on a fixed position of your web page.
How to use it:
1. Include jQuery library and sticky.jquery.js
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <script src="sticky.jquery.js"></script>
2. Create a FIXED Div
<div id="menu"> <div class="w"> <a href="https://www.jqueryscript.net/">Download</a> - <a href="https://www.jqueryscript.net/">Back To jQueryScript.Net</a></div> </div>
3. Call the plugin
<script> $('#menu').sticky(50); // 50 is the margin between screen top border and block. </script>
This awesome jQuery plugin is developed by unknown. For more Advanced Usages, please check the demo page or visit the official website.