/*
* stickyNavbar.js v1.0.5
* https://github.com/jbutko/stickyNavbar.js
* Fancy sticky navigation jQuery plugin with smart anchor links highlighting
*
* Developed and maintenained under MIT licence by Jozef Butko - www.jozefbutko.com
* http://www.opensource.org/licenses/MIT
* Original jquery-browser code Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* http://jquery.org/license
*
* CREDITS:
* Daniel Eden for Animate.CSS:
* http://daneden.github.io/animate.css/
* jQuery easing plugin:
* http://gsgd.co.uk/sandbox/jquery/easing/
*
* COPYRIGHT (C) 2014 Jozef Butko
* https://github.com/jbutko
*/
/* The semi-colon before function invocation is a safety net against concatenated
scripts and/or other plugins which may not be closed properly. */
;
(function ($, window, document) {
'use strict';
$.fn.stickyNavbar = function (prop) {
// Set default values
var options = $.extend({
activeClass: "active", // Class to be added to highlight nav elements
sectionSelector: "scrollto", // Class of the section that is interconnected with nav links
navOffset: 0, // Offset from the default position of this() (nav container)
animDuration: 550, // Duration of jQuery animation
startAt: 0, // Stick the menu at XXXpx from the top of the this() (nav container)
easing: "linear", // Easing type if jqueryEffects = true, use jQuery Easing plugin to extend easing types - gsgd.co.uk/sandbox/jquery/easing
animateCSS: true, // AnimateCSS effect on/off
animateCSSRepeat: false, // Repeat animation everytime user scrolls
bottomAnimation: false, // CSS animation on/off in case we hit the bottom of the page
cssAnimation: "fadeInDown", // AnimateCSS class that will be added to selector
jqueryEffects: false, // jQuery animation on/off
jqueryAnim: "slideDown", // jQuery animation type: fadeIn, show...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.