Function checkIfInScrollView

  • Check if the given element is visible in its scroll container to the degree of the given ratio.

    Parameters

    • element: Element
    • ratio: number

      A number from 0-1, representing 0% to 100%.

    Returns Promise<unknown>