Line 771: | Line 771: | ||
// The optional number (100) specifies the number of milliseconds it takes to scroll to the specified area | // The optional number (100) specifies the number of milliseconds it takes to scroll to the specified area | ||
$('html, body').animate({ | $('html, body').animate({ | ||
− | scrollTop: $( | + | scrollTop: $(a).offset() .top -100 |
}, 200, function(){ | }, 200, function(){ | ||
Revision as of 09:28, 19 October 2019