var honor = new swiper('.honormod-1 #honor',{ slidesperview: 'auto', spacebetween: 0, freemode: true, // lazy: { // loadprevnext: true, // }, slidesoffsetbefore : 40, slidesoffsetafter : 40, virtualtranslate : true, spacebetween: 30, scrollbar: { el: ".honormod-1 .honor-scrollbar", hide: false, draggable: true, }, on:{ settranslate: function(){ this.$wrapperel.transition('') tweenmax.to(this.$wrapperel, 1.5, {x:this.translate, ease:power4.easeout}) } }, breakpoints: { 1024:{ spacebetween: 60, slidesoffsetbefore : 100, }, } }) fancyboximg('honorimg')