Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Ui/isElementInViewport

Index

Functions

isElementInViewport

  • isElementInViewport(el: HTMLElement, offsetTop?: number): boolean
  • isElementInViewport(el: HTMLElement, options?: IsElementInViewportOptions): boolean
  • Checks if the given element is visible inside the current viewport (any part of it)

    Parameters

    • el: HTMLElement

      The element to heck for

    • Optional offsetTop: number

      An additional offset to check for

    Returns boolean

  • Checks if the given element is visible inside the current viewport (any part of it)

    Parameters

    Returns boolean

Generated using TypeDoc