Skip to content

Instantly share code, notes, and snippets.

View tawadeparmeshwar's full-sized avatar

Parmeshwar Tawade tawadeparmeshwar

View GitHub Profile
@tawadeparmeshwar
tawadeparmeshwar / appear.js
Last active August 29, 2015 14:21
It can be used for lazy load or infinite page load
/*
* $(elems).appear(function(elem){
* console.log("Reached elment", elem);
* });
*/
$.fn.appear = function(cb) {
var more_pos = $(this).offset().top;
var w_height = $(window).height();