Skip to content

I.scrollTo() ​

Scrolls the page to a specific position.

Usage ​

js
I.scrollTo(x: number, y: number)

Parameters ​

ParameterTypeDescription
xnumberHorizontal scroll position, in pixels.
ynumberVertical scroll position, in pixels.

Example ​

js
I.scrollTo(0, 500)

Scrolls the page to the (0, 500) coordinate.