No description, website, or topics provided.
Latest commit f78b951 Feb 4, 2014 @bas2k Update
Failed to load latest commit information. Update Feb 4, 2014
jquery.appear.js Update jquery.appear.js Feb 4, 2014

jQuery plugin to call a function when an element appears


Mimics a custom 'appear' event, which fires when an element scrolls into view or otherwise becomes visible to the user.

$('#foo').appear(function() {
  $(this).text('Hello world');

This plugin can be used to prevent unnecessary requests for content that's hidden or outside the viewable area.

Usage with additional options

$('#foo').appear(function() {
  $(this).text('Hello world');
},{accX: 50, accY: 100});

Will fire 'appear' event with accuracy 50px in X and 100px in Y