<script type="text/javascript">$(function() { $(window).scroll(function() { const scroll = $(window).scrollTop(); const windowHeight = $(window).height(); $(".p-instagram").each(function() { const boxHeight = $(this).offset().top; if(scroll + windowHeight > boxHeight) { $(this).addClass("is-active"); } }); });});</script>