For my website, I utilized a template that can be found here: http://www.bootply.com/100702. However, the animated menu is experiencing issues such as being buggy and laggy when clicking on menu options.
Upon clicking on the link provided, the page blinks to the wrong position before displaying the animation.
I have a suspicion that the problem lies within this particular code snippet:
/* smooth scrolling for nav sections */
$('#nav .navbar-nav li>a').click(function(){
var link = $(this).attr('href');
var posi = $(link).offset().top+20;
$('body,html').animate({scrollTop:posi},700);
})
Do you think adding a delay between clicks or implementing another method would improve the animation?