Coffeekraken.io 0.0.1

isVisible

Check if the passed HTMLElement is visible or not. Visible mean that it has not an opacity of 0, not a visibility of hidden and not a display of none

Name Type Description Status Default
elm { HTMLElement } The element to check required

Return { Boolean } If the element is visible or not

Example

    import isVisible from 'sugarcss/js/dom/isVisible'
if (isVisible(myCoolHTMLElement) {
        // i'm visible
}

Author : Olivier Bossel olivier.bossel@gmail.com