Optional
containerwindow
Optional
durationThe duration of the scroll animation in milliseconds. Can be either a fixed number or a function that takes the scroll distance and returns the duration.
250
Optional
leftThe target left position to scroll to, with optional padding.
0
Optional
topThe target top position to scroll to, with optional padding.
0
The container to scroll (window, element, or custom scroll-like object)