Answer the question
In order to leave comments, you need to log in
Block appearance animation and SEO. Does it affect ranking and indexing?
I wrote a script for smooth appearance of blocks when scrolling the page:
var scrollSlideLeftWindowHeight = $(window).height();
$(window).scroll(function(){
// Scroll Slider Opacity ------------------------------------
if(window.matchMedia('(min-width: 1101px)').matches){
$('.scrollFunctionLeft').each(function() {
var selfAARF = $(this),
heightAARF = selfAARF.offset().top + (selfAARF.height() - selfAARF.height() + 200);
if ($(document).scrollTop() + scrollSlideLeftWindowHeight >= heightAARF) {
selfAARF.removeClass('hideScroll');
}
});
} else if(window.matchMedia('(max-width: 1100px)').matches){
$('.scrollFunctionLeft').each(function() {
var selfAARF = $(this),
heightAARF = selfAARF.offset().top + (selfAARF.height() - selfAARF.height() + 100);
if ($(document).scrollTop() + scrollSlideLeftWindowHeight >= heightAARF) {
selfAARF.removeClass('hideScroll');
}
});
}
});
.scrollFunctionLeft { opacity: 1; -webkit-transition: all 0.9s ease; transition: all 0.9s ease; }
.hideScroll { opacity: 0.001; }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question