checkVisibility

open external fun checkVisibility(options: CheckVisibilityOptions = definedExternally): Boolean(source)

The checkVisibility() method of the Element interface checks whether the element is potentially visible.

MDN Reference