I want to check if the element is on the screen. It MUST NOT involve any kind of scrolling. I just want to check if the element is on the screen. I have tried different codes out there. They work perfectly fine on Desktops but not on mobile phones.
This is my current code:
var wScroll = $(this).scrollTop();
if(wScroll > $('.services').offset().top - ($(window).height() / 1.2)) {
$('.jstransitiononservices').each(function(i){
setTimeout(function(){
$('.jstransitiononservices').eq(i).addClass('is-showing');
}, 150 * (i+1));
});
}