Window Scroll down to specefic element on button click

Public
</> CopyGet raw version
javascript
  1. $(".front .center-region .pane-custom.pane-1 img").click(function () {
  2. $("html, body").animate({scrollTop: $(".pane-presidio-hill-presidio-hill-home-top-block").offset().top - 50});
  3. });