davidpetrey
1/19/2017 - 10:20 PM

scroll to element scroll to element with offset

scroll to element

scroll to element with offset

$(document).ready(function (){

  $(".spr-summary:eq(0)").click(function (){
    $('html, body').animate({
     scrollTop: $("#shopify-product-reviews").offset().top
    }, 0);
  });
  
});
$(document).ready(function (){

  $(".spr-summary:eq(0)").click(function (){
    $('html, body').animate({
     scrollTop: $("#shopify-product-reviews").offset().top -100
    }, 0);
  });
  
});