$(document).ready(function () { // introContainer(); mainContainer(); htmlScroll(); count(); // Acodian(); AOS.init(); gotop(); businessHover(); // scrollEvent(); //s:: section01 visual-content-animate }); // function introContainer() { // setTimeout(function () { // $('.intro-container').fadeOut(2000); // }, 6000); // } function mainContainer() { setTimeout(function () { $('#wrap').fadeIn(1000); }, 300); } //scroll function htmlScroll() { $('html').easeScroll({ frameRate: 60, animationTime: 300, stepSize: 200, pulseAlgorithm: 1, pulseScale: 8, pulseNormalize: 1, keyboardSupport: true, touchpadSupport: true, fixedBackground: true, }); } //scrol //section01 visualSwiper var visualSwiper = new Swiper('.visualSwiper', { // direction: 'vertical', pagination: { el: '.swiper-pagination', clickable: true, }, loop: true, autoplay: { delay: 5000, // disableOnInteraction: false, }, on: { slideChange: function () {}, }, }); //section04 swiper var mainProdSwiper = new Swiper('.main-prod-swiper', { slidesPerView: '2', spaceBetween: 0, loop: true, autoplay: { delay: 3000, disableOnInteraction: false, }, pagination: { el: '.swiper-pagination', clickable: true, }, breakpoints: { // when window width is >= 320 320: { slidesPerView: 1, spaceBetween: 0, }, 768: { slidesPerView: 2, spaceBetween: 0, }, }, }); //count function count() { $('.counter01').counterUp({ delay: 10, time: 1000, }); $('.counter02').counterUp({ delay: 10, time: 1000, }); $('.counter03').counterUp({ delay: 10, time: 1000, }); $('.counter04').counterUp({ delay: 10, time: 1000, }); $('.counter05').counterUp({ duration: 1000, offset: 160, delay: 300, }); } //s::section03 //s::chart-js // var ctx = document.getElementById('mainChart'); // var myChart = new Chart(ctx, { // type: 'doughnut', // data: { // labels: ['TITLE01', 'TITLE02', 'TITLE03', 'TITLE04'], // datasets: [ // { // // label: '# of Votes', // data: [12, 10, 5, 3], // backgroundColor: ['#e21313', '#e21313', '#e21313', '#e21313'], // borderColor: ['#f2f2f2', '#f2f2f2', '#f2f2f2'], // borderWidth: 5, // // cutoutPercentage: 50, // cutout: '50%', // }, // ], // }, // options: { // plugins: { // legend: { // display: false, // }, // labels: { // color: 'rgb(255, 99, 132)', // font: { // size: 14, // }, // }, //¶óº§ ¾ø¾Ö±â // tooltip: { // enabled: 1, // yAlign: 'bottom', // displayColors: false, // position: 'nearest', // }, //ÅøÆÁ Ä¿½ºÅÒ // }, // }, // }); //e:: chart-js function Acodian() { $('.section04 .icondian-wrap .title + p').hide(); $('.icondian-wrap .title').click(function () { $(this).addClass('on'); $(this).next().slideToggle(); $('.icondian-wrap .title').not(this).next().slideUp(); $('.icondian-wrap .title').not(this).removeClass('on'); return false; }); } //acodian //e::section03 // s::section05 swiper var bnrswiper = new Swiper('.bnr-swiper-container', { pagination: { el: '.swiper-pagination', clickable: true, }, autoplay: { delay: 3000, disableOnInteraction: false, }, breakpoints: { 320: { slidesPerView: 2, }, 1023: { slidesPerView: 4, spaceBetween: 0, }, }, }); // s::section06 swiper var partnerSwiper = new Swiper('.partner-banner-container', { slidesPerView: 5, spaceBetween: 0, autoplay: { delay: 2500, disableOnInteraction: false, }, breakpoints: { 320: { slidesPerView: 2, }, 1024: { slidesPerView: 4, spaceBetween: 0, }, 1280: { slidesPerView: 5, spaceBetween: 0, }, }, loop: true, }); function gotop() { var gotop = $('.gotop'); $(window).scroll(function () { var windowScroll = $(document).scrollTop(); if (windowScroll > 800) { gotop.fadeIn(1000); } else { gotop.fadeOut(1000); } }); // scroll $(gotop).click(function (e) { console.log('gotopÀÌ ¿Ö½ÇÇàµÉ±î'); e.preventDefault(); $('html, body').animate( { scrollTop: 0, }, 1000 ); return false; }); } function businessHover() { var businessCircle = $('.business-con-container .circle-container li'); businessCircle.hover( function () { // over $('.business-con-container .circle-container li').removeClass('on'); }, function () { // out } ); }