scrollTo

external fun scrollTo(options: ScrollToOptions = definedExternally): Promise<Void>?(source)

The scrollTo() method of the Element interface scrolls to a particular set of coordinates inside a given element.

MDN Reference


external fun scrollTo(x: Double, y: Double): Promise<Void>?(source)