Skip to content

A simple jQuery plugin for a sticky nav (or element)

Notifications You must be signed in to change notification settings

gin93r/StickyNav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StickyNav

A simple jQuery plugin for a sticky nav (or element)

Usage

/*css */
.sticky
{
    max-width: 1000px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
}
// js
$("selector").StickyNav(options);

Options

stickAt {int} default 1: Element will apply the "stick" class as soon as the window is scrolled to this position.

stickClass {string} default sticky: The css class to add to element when it is stuck.

onStick {function} default empty: Called when the nav sticks.

onUnStick {function} default empty: Called when the nav reverts.

About

A simple jQuery plugin for a sticky nav (or element)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published