v2
This commit is contained in:
14
script.js
Normal file
14
script.js
Normal file
@@ -0,0 +1,14 @@
|
||||
// https://twitter.com/uixmat
|
||||
|
||||
function scrollNav() {
|
||||
$('.nav a').click(function(){
|
||||
$(".active").removeClass("active");
|
||||
$(this).addClass("active");
|
||||
|
||||
$('html, body').stop().animate({
|
||||
scrollTop: $($(this).attr('href')).offset().top - 160
|
||||
}, 300);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
scrollNav();
|
||||
Reference in New Issue
Block a user