Skip to content

jackplug/jquery-lockfixed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lockfixed jQuery plugin

lockfixed is a jQuery plugin which allows for DOM elements to be positioned anywhere on the page, and lock within the user's viewport when scrolling. Common use case is a menu under a header, which on scrolling stays within the viewport and doesn't overflow the footer.

Degrades nicely on mobile and tablet browsers and doesn't have any CSS prerequisites.

Setup and demo

$.lockfixed(".menu");

or

$.lockfixed(".menu",{offset: {top: 10, bottom: 100}});

See demo.

Documentation

Find the documentation.

Problems?

Just send either one of us a message on Twitter: @yvoschaap.

License

lockfixed is released under the MIT license. See the license for details.

About

jQuery lockfixed plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%