// This description is for the animation attached to the image. $(window).scroll(function (){ $(".anime_wrap").each(function(){ var offset = $(this).offset().top; var scroll = $(window).scrollTop(); var wHeight = $(window).height(); if (scroll > offset - wHeight + wHeight/2){ $(this).addClass("show"); } }); }) // hamburger-menu $(function() { $('.hamburger').click(function() { $(this).toggleClass('active'); if ($(this).hasClass('active')) { $('.globalMenuSp').addClass('active'); } else { $('.globalMenuSp').removeClass('active'); } }); });