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
Return value
Whether the given element is visible.
Type: boolean