https://github.com/sanishmaharjan/stickynav
Sticky Nav
https://github.com/sanishmaharjan/stickynav
Last synced: 3 months ago
JSON representation
Sticky Nav
- Host: GitHub
- URL: https://github.com/sanishmaharjan/stickynav
- Owner: sanishmaharjan
- Created: 2016-03-29T07:42:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-12T09:08:57.000Z (over 8 years ago)
- Last Synced: 2025-02-08T22:33:23.584Z (4 months ago)
- Language: HTML
- Size: 114 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#stickyNav 1.0
A jQuery plugin for sticky navigation.## Installation
###Bower
````bash
bower install stickyNav --save
````##Usage
````javascript
$(function() {
$("#nav").stickyNav({
"top" : 100,
"zIndex": 10,
"backgroundColor": "#ffffff",
"scrollUp": false
});
});
````Options.
* top : Top position of sticky navigation | default 0
* zIndex : z-index value of sticky navigation | default 10
* backgroundColor : sticky navigation background color | default "#ffffff"
* scrollUp :
- If true sticky navigation will be scroll on page scroll up & appear on scroll down even page scroll not reach to top.
- If false sticky navigation always sticky to the top position.