Skip to content Skip to sidebar Skip to footer

Jquery Scroll To Id On Page A From Page B (node, Ejs)

this is my navbar

Solution 1:

(function (){
  if(location.hash === '#top_something'){
      window.setTimeout(
        function(){ 
            $('html, body').animate({
            scrollTop: $('#top_something').offset().top
            }, 'slow');
        },2000);
  }
})();

This is what worked for me in this case :)


Post a Comment for "Jquery Scroll To Id On Page A From Page B (node, Ejs)"