Файловый менеджер - Редактировать - /home/kunzqhe/photostocker/wp-content/themes/themify-ultra/themify/js/modules/swiper/effects/coverflow.min.js
Назад
(function(a){'use strict';const b=a.Utils,c={setTranslate(){const a=this.slides,b=this.slidesSizesGrid,c=this.params.coverflowEffect,d=this.isHorizontal(),e=this.translate,f=d?-e+this.width/2:-e+this.height/2,g=d?c.rotate:-c.rotate,h=c.depth;for(let e=0,i=a.length;e<i;++e){let i=a.eq(e),j=b[e],k=i[0].swiperSlideOffset,l=(f-k-j/2)/j*c.modifier,m=d?g*l:0,n=d?0:g*l,o=-h*Math.abs(l),p=c.stretch;"string"==typeof p&&-1!==p.indexOf("%")&&(p=parseFloat(c.stretch)/100*j);let q=d?0:p*l,r=d?p*l:0;.001>Math.abs(r)&&(r=0),.001>Math.abs(q)&&(q=0),.001>Math.abs(o)&&(o=0),.001>Math.abs(m)&&(m=0),.001>Math.abs(n)&&(n=0);let s="translate3d("+r+"px,"+q+"px,"+o+"px) rotateX("+n+"deg) rotateY("+m+"deg)";if(i.transform(s),i[0].style.zIndex=-Math.abs(Math.round(l))+1,c.slideShadows){let a=d?i.find(".tf_swiper-slide-shadow-left"):i.find(".tf_swiper-slide-shadow-top"),b=d?i.find(".tf_swiper-slide-shadow-right"):i.find(".tf_swiper-slide-shadow-bottom");0===a.length&&(a=this.$("<div class=\"tf_swiper-slide-shadow-"+(d?"left":"top")+"\"></div>"),i.append(a)),0===b.length&&(b=this.$("<div class=\"tf_swiper-slide-shadow-"+(d?"right":"bottom")+"\"></div>"),i.append(b)),a.length&&(a[0].style.opacity=0<l?l:0),b.length&&(b[0].style.opacity=0<-l?-l:0)}}(this.support.pointerEvents||this.support.prefixedPointerEvents)&&(this.$wrapperEl[0].style.perspectiveOrigin=f+"px 50%")},setTransition(a){this.slides.transition(a).find(".tf_swiper-slide-shadow-top, .tf_swiper-slide-shadow-right, .tf_swiper-slide-shadow-bottom, .tf_swiper-slide-shadow-left").transition(a)}},d={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create(){b.extend(this,{coverflowEffect:{setTranslate:c.setTranslate.bind(this),setTransition:c.setTransition.bind(this)}})},on:{beforeInit(){"coverflow"!==this.params.effect||(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate(){"coverflow"!==this.params.effect||this.coverflowEffect.setTranslate()},setTransition(a){"coverflow"!==this.params.effect||this.coverflowEffect.setTransition(a)}}};a.use(d)})(TF_Swiper);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка