kit
    Preparing search index...
    • Get an element's distance from the top of the Document (using more modern/performant technique compared to getOffsetTop)

      Type Parameters

      • T extends HTMLElement

      Parameters

      • elem: T

        The HTML node element

      Returns number

      Distance from the top in pixels