wdpr
    Preparing search index...
    • Smoothly scroll to a DOM element by its id and briefly highlight it.

      Looks up the element via document.getElementById, scrolls it into view centered vertically with smooth animation, and applies a wdpr-blink CSS class for 1.5 seconds to provide visual feedback. The host application is expected to define a wdpr-blink CSS rule (e.g. a background flash) for the highlight effect.

      If no element with the given ID exists, this is a no-op.

      Parameters

      • id: string

        The id attribute of the target element (without #).

      • Optionaldoc: Document

        The document to search in. Defaults to the global document.

      Returns void