$(function() { updateTopWrapHeight(); $(window).resize(function() { updateTopWrapHeight(); }); function updateTopWrapHeight() { var headerHeight = $('header').height(); var footerHeight = $('footer').outerHeight(); var Height = headerHeight + footerHeight; $('.top_wrap').css('height', 'calc(100vh - ' + headerHeight + 'px)'); if ($(window).width() <= 2000) { $('.top_wrap').css('height', 'calc(100vh - ' + Height + 'px)'); } } }); $(function() { setTimeout(function() { $('.txt_container').addClass('is-animated_bg'); }, 2000); setTimeout(function() { $('.txt_container p').addClass('is-animated'); }, 2500); setTimeout(function() { $('.mv_wrap').addClass('is-animated_mv'); }, 3000); const swiperTop = new Swiper(".mv_swiper", { effect: 'fade', speed: 1200, loop: true, autoplay: { delay: 1500, disableOnInteraction: false, }, }); swiperTop.autoplay.stop(); setTimeout(function() { swiperTop.autoplay.start(); }, 4000); });