Skip to content

findhit/html-element-fractions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-element-fractions

gets element and viewport visibility fractions

this plugin is based on jQuery.fracs.

WARNING

This module is currently with WIP status!! It isn't ready for production use.

Installation

requirehit use html-element-fractions

Usage

Just add this module as a dependency on your .requirehit.js, or use provided installation command to do so.

Then you could use it directly with HTMLElement instances:

    var element = document.createElement( 'div' );
        element.parentNode = document;


    setInterval( function () {
        console.log( element.fracs() );
    }, 1000 );

About

gets element and viewport visibility fractions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published