scrollLeft()
Scrolls the page/element to the left.
Examples
Section titled “Examples”await scrollLeft()await scrollLeft(1000)await scrollLeft('Element containing text')await scrollLeft('Element containing text', 1000)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
e | selector | string | number | Default: 'Window'. |
px | number | Accept px in pixels Default: 100. |
Returns
Section titled “Returns”| Type | Description |
|---|---|
Promise<void> |