https://github.com/shannonhochkins/jquery.stickup
This plugin automates sticky menus! Very simply and lightweight plugin.
https://github.com/shannonhochkins/jquery.stickup
Last synced: 2 months ago
JSON representation
This plugin automates sticky menus! Very simply and lightweight plugin.
- Host: GitHub
- URL: https://github.com/shannonhochkins/jquery.stickup
- Owner: shannonhochkins
- Created: 2014-09-04T03:15:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-07T23:01:56.000Z (over 10 years ago)
- Last Synced: 2025-01-04T06:26:02.696Z (4 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.html
Awesome Lists containing this project
README
Stuckup
This plugin makes sticky menus easy, very lightweight plugin, just does what it says, nothing else! Created by shannon hochkins.
Usage & Options
$('.element').stickUp({
topMargin: null,
zIndex: 10,
onStick: function(settings) {},
unStick: function(settings) {}
});Options
Options
Default
DescriptiontopMargin
null
An offset param to tell the plugin where the top of the menu is.zIndex
10
The css z-index of the menu to be set when active, when inactive it will reset to it's original z-indexonStick
null
A callback when the menu has been activated or is sticky.unStick
null
A callback when the menu has been inactivated or is not sticky.