Skip to content

Function: isScrollEnd()

ts
function isScrollEnd(element?): boolean;

Checks if the scroll has reached the end.

Parameters

ParameterTypeDescription
element?HTMLElement | nullThe element to check the scroll for. Defaults to the entire document.

Returns

boolean

Returns a boolean indicating whether the scroll has reached the end.

Example

ts
isScrollEnd() // => false

Since

1.0.0

Released under the MIT License.