Skip to content

pldrake26/Scrollspy-mini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrollspy-mini

This plugin is my version of Scrollspy and offers a way to fine tune it's operation.
http://pldrake26.github.io/Scrollspy-mini/

Implementation:

  1. jquery.scrollspy-mini.js is commented to allow for easy implementation.
  2. Each nav anchor must have an id for the addClass and removeClass to target.
  3. Each nav section or div of your website that is being spied on must have an jQuery offset() method to find the top coordinate to compare to the scrollTop() method.
  4. You must add a comparision statement for each section or div.
  5. Manually fine tune functionality by adjusting the yPos variable up or down.
  6. Call the plugin using: $(document).scrollspy(); inside a document ready function.

About

This jQuery plugin example is my version of Scrollspy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published