@blinkk/degu
    Preparing search index...

    Function smoothScrollTo

    • 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.

      Parameters

      • top: number
      • duration: number = 500
      • OptionalonComplete: () => void

      Returns () => void