Scrolls to the start of a specific scrollable element.
Syntax
When I scroll to start of "<selector>"
When we scroll to start of "<selector>"
When scrolling to start of "<selector>"
Parameters
<selector>
— A valid CSS selector identifying the element to scroll.
Example
When I scroll to start of "#off-canvas"
Notes
- Throws an error if the selector is empty or invalid.
- Throws an error if the element cannot be found in the DOM.