UseIsAtBottom
katanakit-js / useIsAtBottom
Function: useIsAtBottom()
Section titled “Function: useIsAtBottom()”function useIsAtBottom(threshold?): boolean;Defined in: infrastructure/viewport/viewport.service.ts:142
Checks whether the page is scrolled to (or near) the bottom.
Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
threshold? |
number |
50 |
Pixel tolerance from the bottom (default: 50). |
Returns
Section titled “Returns”boolean
true if within threshold pixels of the bottom.