Skip to content

scrollLeft()

Scrolls the page/element to the left.

await scrollLeft()
await scrollLeft(1000)
await scrollLeft('Element containing text')
await scrollLeft('Element containing text', 1000)
NameTypeDescription
eselector | string | numberDefault: 'Window'.
pxnumberAccept px in pixels Default: 100.
TypeDescription
Promise<void>