diff --git a/template/default.twig b/template/default.twig index a6cdf854..b5d91911 100644 --- a/template/default.twig +++ b/template/default.twig @@ -127,6 +127,11 @@ } }); + // scroll to the active nav item + $("nav .scroll").animate({ + scrollTop: $("nav .active").offset().top - 157 + }, 0); + // var lastScrollTop = 0; // $(window).scroll(function(event){ // var st = $(this).scrollTop();