0.1.1 • Published 8 years ago

true-visibility v0.1.1

Weekly downloads
25
License
MIT
Repository
github
Last release
8 years ago

true-visibility 0.1.1

Checks if a DOM element is truly visible

Installation

    npm i true-visibility -D

Usage

isVisible accepts elements and selector strings.

true-visibility is UMD compatible. Depending on your environment, you can use true-visibility as follows.

    requirejs( [ 'true-visibility' ], function( isVisible )
    {
        isVisible( 'body' ) // true
    } );

or

    let isVisible = require( 'true-visibility' );
    isVisible( 'body' ); // true

or

    var bodyElement = document.getElementById( 'body' );
    isVisible( bodyElement ); // true

This project adheres to the Contributor Covenant. By participating, you are expected to honor this code.

true-visibility - Code of Conduct

Need to report something? mkem@knoblau.ch

Changes

  • 0.1.1

    • updated package dependencies
  • 0.1.0

    • UMD fixed
    • CoC added
    • Readme is slightly more useful
0.1.1

8 years ago

0.1.0

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago