Jquery Jump To Bookmark ID

Jquery Code to jump to a element ID on the page

This is a very useful snippet. Give it a click class at the “.nav_button” Then give it a element ID at “#main_slide”

  $( ".nav_button" ).click(function(event) {
      $('html,body').animate({scrollTop: $("#main_slide").offset().top},'slow');
  });
Comments