signalizejs/visibility

Retrieve information about HTML element visibility.

Installation

const { isVisible } = await signalize.resolve('visibility');

API

isVisible

Check if an element is visible. The method returns true or false.

isVisible(document.querySelector('#element'));