T
T
tereshock982020-06-19 14:49:54
css
tereshock98, 2020-06-19 14:49:54

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; }


That is, I initially set a class with Opacity 0.001 to the blocks, and after the active area of ​​the screen reaches the block, the class is removed and the block becomes with opacity 1.

Will this affect the ranking and indexing of the site, because initially all blocks with content are hidden ?

UPD1: there is an option to add noscript to fill in the styles that make these blocks opacity: 1, but this is also unknown

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aftar, 2020-06-25
@tereshock98

Search robots are smart.
Animation will not affect ranking.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question