LWT JavaScript API
    Preparing search index...
    • Scroll to a specific position or element. Replaces jQuery scrollTo plugin with native implementation.

      Parameters

      • target: number | HTMLElement

        Element or pixel position to scroll to

      • Optionaloptions: { behavior?: ScrollBehavior; offset?: number }

        Scroll behavior options

      Returns void