Skip to main content

ElementGetScrollPercentage

Callable

  • ElementGetScrollPercentage(ID: string): number

  • Returns the given element's scroll position as a percentage, with the top of the element being close to 0 depending on scroll bar size, and the bottom being around 1. To clarify, this is the position of the bottom edge of the scroll bar.


    Parameters

    • ID: string

      The id of the element to find the scroll percentage of.

    Returns number

    • A float representing the scroll percentage.