Для такого требования вам необходимо определить, находится ли элемент в области просмотра при определенных событиях (прокрутка окна или загрузка документа).
function isInsideViewport(el) {
var scroll = window.scrollY || window.pageYOffset,
boundsTop = el.getBoundingClientRect().top + scroll,
viewport = {top: scroll, bottom: scroll + window.innerHeight},
bounds = {top: boundsTop, bottom: boundsTop + el.clientHeight},
visible = $(el).is(':visible'),
viewTop = (bounds.bottom >= viewport.top && bounds.bottom <= viewport.bottom),
viewBot = (bounds.top <= viewport.bottom && bounds.top >= viewport.top);
return visible && (viewTop || viewBot);
}
function checkAllElements() {
$('.itemSelector').each(function(i,elem){
if (isInsideViewport(elem)) {
console.log(elem,' is inside viewport');
}
});
};
//on ready check which are already inside viewport
$( document ).ready(checkAllElements);
//on scroll check whick came to viewport
$(window).scroll(checkAllElements);