Function createViewportManager

  • Creates a manager that monitors changes to the viewport of an element

    Parameters

    • element: HTMLElement

      An element

    • callback: Callback

      A viewport change callback

    • duration: number | Debounce = 200

      Function to debounce a callback or callback delay duration, default is 200

    Returns ViewportManager

Generated using TypeDoc