Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*-------------------------------------------------*/
- /* = Scroll between sections
- /*-------------------------------------------------*/
- var $root = $('html, body');
- $('a.anchor[href*=#]').on("click",function(event) {
- event.preventDefault();
- var offset = -150;
- $root.animate({
- scrollTop: $( $.attr(this, 'href') ).offset().top + offset
- }, 500);
- });
Add Comment
Please, Sign In to add comment