Anchoring with jquery

0

I created a scroll anchor with jquery but it only works on the same page, how do I work with different pages?

jQuery(document).ready(function($) {
   $(".scroll").click(function(event) {
     event.preventDefault();
     $('html,body').animate({scrollTop:$(this.hash).offset().top}, 800);
    });
  });
    
asked by anonymous 30.07.2017 / 00:44

0 answers