$(function(){ Splitting(); motionJs(); m12(); m61(); resetBullet = function(){ $(".sub_visual").addClass("motion"); } setTimeout(resetBullet,100) }); function motionJs(){ $('.m00 .conwrap').each(function(){ var $this = $(this); gsap.fromTo($this,{ },{ duration: 1, delay: 0.1, scrollTrigger: { trigger: $this, start: 'top 80%', onEnter: function(){ $this.addClass('animate'); } }, ease: 'power2.out', }); }); $('.ani_up').each(function(){ var $this = $(this); gsap.fromTo($this,{ opacity:0, y:40, },{ opacity:1, y:0, duration: 1, delay: 0.1, scrollTrigger: { trigger: $this, start: 'top 85%', onEnter: function(){ $this.addClass('animate'); } }, ease: 'power2.out', }); }); } function m12(){ if(!$(".m00").is(".m12")) return; var hisSwiper = new Swiper(".his_slider", { slidesPerView: 'auto', loop:true, allowTouchMove: false, pagination: { el: '.his_pagination', type: 'custom', renderCustom: function (swiper, current, total) { for ( var i = 0; i < 10; i++ ) { return ''+current+'/'+total+''; } } }, navigation: { nextEl: ".his_next", prevEl: ".his_prev", }, }); } function m61(){ if(!$(".m00").is(".m61")) return; //$(".m61 .section1 form .privacy_g .pre_wrap").niceScroll(); }