Belin.io Core
    Preparing search index...

    Manages the scroll position.

    Index

    Constructors

    Accessors

    Methods

    • Scrolls to the specified anchor.

      Parameters

      • anchor: string

        The identifier or name of an elment.

      • options: Partial = {}

        Value indicating whether scrolling is instant or animates smoothly.

      Returns void

    • Scrolls to the specified element.

      Parameters

      • element: Element

        The element to scroll to.

      • options: Partial = {}

        Value indicating whether scrolling is instant or animates smoothly.

      Returns void

    • Scrolls to the specified position.

      Parameters

      • x: number

        The pixel along the horizontal axis.

      • y: number

        The pixel along the vertical axis.

      • options: Partial = {}

        Value indicating whether scrolling is instant or animates smoothly.

      Returns void

    • Scrolls to the top.

      Parameters

      • options: Partial = {}

        Value indicating whether scrolling is instant or animates smoothly.

      Returns void