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