Smoothly scrolls the window vertically to top over duration ms using
requestAnimationFrame (swing easing), cancelling automatically on user
interaction (wheel, mousedown, touchmove, keyup).
Returns a cancel function that stops the animation and cleans up listeners.
Smoothly scrolls the window vertically to
topoverdurationms using requestAnimationFrame (swing easing), cancelling automatically on user interaction (wheel, mousedown, touchmove, keyup).Returns a cancel function that stops the animation and cleans up listeners.