An open API service indexing awesome lists of open source software.

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.

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
Description

topMargin
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-index

onStick
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.