Edit this page

up.element up.element.isVisible(element)
JavaScript function

Returns whether the given element is currently visible.

An element is considered visible if it consumes space in the document. Elements with { visibility: hidden } or { opacity: 0 } are considered visible, since they still consume space in the layout.

Elements not attached to the DOM are considered hidden.


Parameters

element Element

The element to check.

Return value

boolean