Skip to main content

ElementCheckVisibility

Callable

  • ElementCheckVisibility(el: Element, options?: CheckVisibilityOptions): boolean

  • Return whether an element is visible or not.

    Approximate polyfill of Element.checkVisibility(), as its browser support is still somewhat limited (~88% at the time of writing).


    Parameters

    • el: Element

      The element in question

    • optionaloptions: CheckVisibilityOptions

      Additional options to-be passed to Element.checkVisibility()

    Returns boolean

    • Whether the passed element is visible or not