Skip to content

A jQuery plugin for creating elements that 'stick' to the top of the window when scrolling down the page

Notifications You must be signed in to change notification settings

manentia/StickyScroll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#jQuery StickyScroll

Make elements stick to the top of your page as you scroll

##Usage: Generic usage - element is contained inside the 'body' element $(element).stickyScroll()

If the element is to be contained inside one of its parents, (for instance, if you want to keep it inside the main content area, but keep it out of the header and footer) then provide a selector for that parent element.

Ex: $(element).stickyScroll({ container: '#my-wrapper' })

If you don't have a particular element you want the sticky element contained to, but still need control of its bottom boundary, use the manual mode

Ex: $(element).stickyScroll({ mode: 'manual', 'bottomBoundary': 100 }) where bottomBoundary is relative to the bottom of the document

##Notes:

About

A jQuery plugin for creating elements that 'stick' to the top of the window when scrolling down the page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published