$(document).ready(function(){ $('.owl-carousel').owlcarousel({ loop:true, margin:10, nav:false, responsive:{ 0:{ items:1 }, 400:{ items:2 }, 1200:{ items:3 } }, autoplay:true, slidespeed:500, autoplaytimeout:3000, autoplayhoverpause:true } ); }); $(function(){ $("#subnav-toggle").click(function(){ $(".subnav-collapse-wrap").addclass("on"); }); $(".wrap-bg").click(function(){ $(".subnav-collapse-wrap").removeclass("on"); }); $(".pic-gallery .pic-item").click(function(){ var imgurl=$(this).find('img').attr("src"); $(".gallery-mask").find('img').attr("src",imgurl); $(".gallery-mask").addclass("showmask"); }); $(".gallery-mask .close-btn").click(function(){ $(".gallery-mask").removeclass("showmask"); }); }); //back-top $(function(){ $(window).scroll(function(){ var _top = $(window).scrolltop(); if(_top>300){ $('.totop').fadein(600); }else{ $('.totop').fadeout(600); } }); $(".totop").click(function(){ $("html,body").animate({scrolltop:0},500); }); }); $(function(){ $('.autoplay1').slick({ infinite: true, slidestoshow: 4, slidestoscroll: 1, autoplay: true, autoplayspeed: 3000, speed: 1500, pauseonhover:false, responsive: [ { breakpoint: 1024, settings: { slidestoshow:4, slidestoscroll: 1, infinite: true, autoplay: true, autoplayspeed: 3000, speed: 1500, } }, { breakpoint:768, settings: { slidestoshow: 4, slidestoscroll: 1, autoplay: true, autoplayspeed: 3000, speed: 1500, } }, { breakpoint: 480, settings: { slidestoshow: 3, slidestoscroll: 1, autoplay: true, autoplayspeed: 3000, speed: 1500, } } ] }) }); $(function() { var wow = new wow({ boxclass: 'wow', animateclass: 'animated', offset: 30, mobile: true, live: true }); wow.init(); });