$('.window').windows({ snapping: true, snapSpeed: 500, snapInterval: 1100, onScroll: function(scrollPos){ // scrollPos:Number }, onSnapComplete: function($el){ // after window ($el) snaps into place }, onWindowEnter: function($el){ // when new window ($el) enters viewport } });
// returns ratio 0-1 $('.window:eq(0)').ratioVisible(); // returns boolean of whether or not is visible on screen $('.window:eq(0)').isOnScreen(); // get most visible window $('.window').getCurrentWindow();