Skip to content

scrollLeft()

Scrolls the page/element to the left.

Examples

await scrollLeft()
await scrollLeft(1000)
await scrollLeft('Element containing text')
await scrollLeft('Element containing text', 1000)

Parameters

Name Type Description
e selector | string | number Default: 'Window'.
px number Accept px in pixels Default: 100.

Returns

Type Description
Promise<void>