documentation/assets/js/website.js
function scrollToElement(el, offset) {
  var off = offset || 0;
  var rect = el.getBoundingClientRect();
  var top = rect.top + off;
  var animation = anime({
    targets: [document.body, document.documentElement],
    scrollTop: '+='+top,
    easing: 'easeInOutSine',
    duration: 1500
  });
  // onScroll(animation.pause);
}
function scrollToElement(el, offset) {
  var off = offset || 0;
  var rect = el.getBoundingClientRect();
  var top = rect.top + off;
  var animation = anime({
    targets: [document.body, document.documentElement],
    scrollTop: '+='+top,
    easing: 'easeInOutSine',
    duration: 1500
  });
  // onScroll(animation.pause);
}
function scrollToElement ( el , offset ) { var off = offset || 0 ; var rect = el . getBoundingClientRect ( ) ; var top = rect . top + off ; var animation = anime ( { targets : [ document . body , document . documentElement ] , scrollTop : '+=' + top , easing : 'easeInOutSine' , duration : 1500 } ) ; // onScroll(animation.pause); }
Scroll to element
Scroll to element