@blinkk/degu
    Preparing search index...

    Function getScrollTop

    • Gets the Y distance of the element from the top of the document.

        const top = dom.getScrollTop(el);
      window.scroll(0, top);

      Parameters

      • el: HTMLElement
      • includeParent: boolean = false

      Returns number