davist11 / jQuery-One-Page-Nav

Smooth scrolling and smart navigation when user scrolls on one-page sites.
http://davist11.github.com/jQuery-One-Page-Nav/
MIT License
1.52k stars 501 forks source link

Added offsetTop feature #128

Closed reardestani closed 9 years ago

reardestani commented 9 years ago

As you know, when it slide to the targeted element, the top position of it is automatically calculated. Sometimes we need to slide some pixel above the calculated position of targeted element.

davist11 commented 9 years ago

You can accomplish this with CSS as seen in this example: http://davist11.github.io/jQuery-One-Page-Nav/top.html