Skip to content

Function: scrollTo()

scrollTo(el, hash, options): void

For theme developers, you can use this function to scroll to the target element. For example, when you click the anchor link in the markdown file, it will scroll to the target element.

Parameters

el: HTMLElement

hash: string

options: Partial<ScrollToOptions> = ...

Returns

void

Defined in

packages/valaxy/client/utils/router.ts:32