$(function(){ custom_cursor(); $("body").addClass("on"); $(".mainslide").addClass("on"); $(document).ready(function(){ if($("body").addClass("on")){ } }); var mainSlide = new Swiper('.mainslide', { effect: "fade", autoplay: true, speed: 1000, allowTouchMove:false, simulateTouch:false, grabCursor: false, touchStartPreventDefault:false, pagination: { el: '.main_pagination', clickable: true, }, navigation: { nextEl: '.main_next', prevEl: '.main_prev', }, }); var productSlide = new Swiper('.product_slide', { effect: "slide", speed: 800, autoplay: {delay:3000}, parallax: true, allowTouchMove:false, simulateTouch:false, grabCursor: false, touchStartPreventDefault:false, navigation: { nextEl: '.product_next', prevEl: '.product_prev', }, loop:true, }); var productText = new Swiper('.product_text', { effect: "fade", speed: 900, autoplay: {delay:3000}, allowTouchMove:false, simulateTouch:false, grabCursor: false, touchStartPreventDefault:false, navigation: { nextEl: '.product_next', prevEl: '.product_prev', }, loop:true, }); var showroomSlide = new Swiper('.showroom_slide', { //effect: "fade", autoplay: false, speed: 1000, loop:true, parallax: true, allowTouchMove:false, simulateTouch:false, grabCursor: false, touchStartPreventDefault:false, navigation: { nextEl: '.showroom_next', prevEl: '.showroom_prev', }, }); var gallerySlide = new Swiper('.gallery_slide', { slidesPerView: 'auto', //effect: "fade", autoplay: false, speed: 1000, pagination: { el: '.gallery_pagination', type: 'progressbar', }, //parallax: true, //allowTouchMove:false, //simulateTouch:false, //grabCursor: false, //touchStartPreventDefault:false, }); var snsSlide = new Swiper('.sns_slide', { slidesPerView: 'auto', centeredSlides: true, //effect: "fade", autoplay: true, speed:1000, loop:true, //parallax: true, //allowTouchMove:false, //simulateTouch:false, //grabCursor: false, //touchStartPreventDefault:false, }); }); function custom_cursor(){ var $cursor = null; var $inner = null; var $circle = null; var $txt = null; if( $('html').hasClass('mobile') || $('html').hasClass('ie10') ) { return; } $('body').mousemove(function(e) { TweenMax.to($('#custom_cursor, #custom_cursor_text'), 1.3, { x: e.clientX, y: e.clientY, ease: Power3.easeOut }); }); }