Function: isScrollEnd()
ts
function isScrollEnd(element?): boolean;Checks if the scroll has reached the end.
Parameters
| Parameter | Type | Description |
|---|---|---|
element? | HTMLElement | null | The 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() // => falseSince
1.0.0