Trevixal API
    Preparing search index...

    Function scrollBehavior

    • How to scroll to something: at once when motion is reduced, by the editor's switch or the operating system's, and smoothly otherwise. CSS cannot reach a script's own scrollIntoView, so every smooth scroll asks.

      Parameters

      • element: Element

      Returns ScrollBehavior