Skip to content

iron66/onscreentimetracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

onscreentimetracking

Simple JS module which track element on screen time

Usage:

var test = triggerVisability({
        selector: '.target',
        interval: 1000, //ms
        percentOnScreen: 25,
        callback: function (data) {
            console.log(data.counter + '\n' + data.visiablePart);
        }
    });

test();

data object contains following:

  • data.counter - timer value
  • data.visiablePart - visiable part of an element in percents

note: Supports only vertical axis

About

Simple JS module which track element on screen time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published