Skip to content

UseScrollToTop

katanakit-js / useScrollToTop

function useScrollToTop(smooth?): void;

Defined in: infrastructure/viewport/viewport.service.ts:171

Scrolls to the top of the page.

Parameter Type Default value Description
smooth? boolean true Whether to use smooth scrolling (default: true).

void