Skip to content

farmetha/jquery-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Farmetha's jQuery Plugins

This project is a work in progress. It is a set of jQuery plugins to add simple functionality to a webpage. It contains the following plugins:

  • StickyNode (lib/jquery.stickynode.js) - A simple implementation of a sticky menu, which allows page elements to stick or float in a fixed position once the window scrolls below their top position. An example can be found in demo/stickynode.html.

Usage Documentation

StickyNode

The javascript source for the stickynode plugin is in lib/jquery.stickynode.js. Usage is currently very simple and only has one option offsetY.

Usage

(function($) {
  //with no options
  $('.someclass').stickynode();
  
  //with options
  $('.anotherclass').stickynode({
    offsetY: 100
  }):
})(jQuery);

Options

  • offsetY - The distance from the top of the window that the element will float once it becomes sticky.

About

A set of jquery plugins to add simple functionality to a webpage.

Resources

Stars

Watchers

Forks

Packages

No packages published