The task is simple, to realize the smooth appearance of blocks when scrolling.
Already tried differently. Only the variant with direct prescription of block behavior in jquery-CSS works. BUT!!! I'm wondering why adding the Animate.css class doesn't work? At the same time, I don’t understand whether it is necessary to hide the element initially, because if you don’t show, the scrolling is intermittent, with delays.
Strongly kicked not kicked. If you make a mistake in the design please politely indicate.
It was just that the second day was already stuck on this, everything that could be viewed on the topic, looked through, and videos and articles, both in Russian and in English.
$(window).scroll(function() { $('#bootstrap-block').each(function(){ if ($(window).scrollTop()>50) { $(this).toggleClass('animated fadeUp'); } }); }); I am writing on the site "Kodruchka.oi."
$(window).scroll(function(){ $('.mov').each(function(){ var blockPos = $(this).offset().top; var topWindow = $(window).scrollTop(); if (blockPos < topWindow+300){ $(this).addClass('fadeUp') } }); }); <body> <div class="container">Example <div class="col-md-12 animated">Example</div> </div> </body>