UseScrollToTop
katanakit-js / useScrollToTop
Function: useScrollToTop()
Section titled “Function: useScrollToTop()”function useScrollToTop(smooth?): void;Defined in: infrastructure/viewport/viewport.service.ts:171
Scrolls to the top of the page.
Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
smooth? |
boolean |
true |
Whether to use smooth scrolling (default: true). |
Returns
Section titled “Returns”void