code: public void scrollTo(double offset) {
          this.offset = offset;
  
          ScrollOption option = new ScrollOption();
          JQueryElement target = getContainerElement();
          if (containerElement != getDefaultContainer()) {
              offset = target.scrollTop() - target.offset().top + offset;
          } else {
              target = $("html, body");
          }
          option.scrollTop = offset;
  
          target.animate(option, duration, easing, () -> {
              if (completeCallback != null) {
                  completeCallback.call();
              }
          });
      }
docs: Will scroll to target offset.