Skip to content

rafecolton/jquery.visibilityChanged

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

jquery.visibilityChanged

Executes a callback when an element's visibility changes

Example: http://jsfiddle.net/shaunbowe/kb24kqfx/4/

$("#tester").visibilityChanged({
    callback: function(element, visible, initialLoad) {
       // do something here
       // element: the element in question
       // visible: (bool) if the element is currently visible
       // initialLoad: (bool) if the callback is being trigger for the
       //   first time on an element (i.e. on page load)
    },
    runOnLoad: false,
    frequency: 100
});

About

Executes a callback when an element's visibility changes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%