Function scrollToElement

  • Scroll to an element with an optional offset

    Parameters

    • element: HTMLElement
    • offset: number

    Returns void

  • Scroll to an element with an optional offset

    Parameters

    • element: HTMLElement
    • Optionaloptions: ScrollOptions

    Returns void