Scroll container (window
or HTMLElement
). Defaults to window
.
Scroll behavior: "smooth"
or "auto"
. Defaults to "smooth"
.
Optional offset from bottom. Can be negative. Defaults to 0
.
Optional
scrollHeight: numberOptional override for scroll height.
Scrolls the specified container to the bottom.
Supports
window
or anyHTMLElement
with optional smooth scrolling and offset. Can override scroll height for testing purposes.