Skip to content

Tiny jQuery plugin to pin an element to the top of the screen when the user scrolls past it.

License

Notifications You must be signed in to change notification settings

lewiswalsh/jquery-stickyscroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

jquery-stickyscroll

Tiny jQuery plugin (~0.3kb minified) to pin an element to the top of the screen when the user scrolls past it.

####Requirements This approach requires that the element have a width set. For all the usecases I have come across so far this has been easy to accommodate. Future versions may negate this need.

####Options At the moment there is only one option, verticalPadding, this is the distance in pixels from the top of the screen that the sticky element will stay.

About

Tiny jQuery plugin to pin an element to the top of the screen when the user scrolls past it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published