1/** 2 * UI Initiative Carousel Slider 3 * 4 * Infinite 3D carousel slider 5 * 6 * https://uiinitiative.com 7 * 8 * Copyright 2023 UI Initiative 9 * 10 * Released under the UI Initiative Regular License 11 * 12 * December 27, 2023 13 */ 14 15!function(e,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(e="undefined"!=typeof globalThis?globalThis:e||self).EffectCarousel=s()}(this,(function(){"use strict";return function({swiper:e,on:s,extendParams:t}){t({carouselEffect:{opacityStep:.33,scaleStep:.2,sideSlides:2}}),s("beforeInit",(()=>{if("carousel"!==e.params.effect)return;e.classNames.push(`${e.params.containerModifierClass}carousel`);const s={watchSlidesProgress:!0,centeredSlides:!0};Object.assign(e.params,s),Object.assign(e.originalParams,s)})),s("progress",(()=>{if("carousel"!==e.params.effect)return;const{scaleStep:s,opacityStep:t}=e.params.carouselEffect,a=Math.max(Math.min(e.params.carouselEffect.sideSlides,3),1),r={1:2,2:1,3:.2}[a],o={1:50,2:50,3:67}[a],i=e.slides.length;for(let l=0;l<e.slides.length;l+=1){const n=e.slides[l],c=e.slides[l].progress,f=Math.abs(c);let p=1;f>1&&(p=.3*(f-1)*r+1);const u=n.querySelectorAll(".swiper-carousel-animate-opacity"),d=c*p*o*(e.rtlTranslate?-1:1)+"%",m=1-f*s,y=i-Math.abs(Math.round(c));n.style.transform=`translateX(${d}) scale(${m})`,n.style.zIndex=y,n.style.opacity=f>a+1?0:1,u.forEach((e=>{e.style.opacity=1-f*t}))}})),s("setTransition",((s,t)=>{if("carousel"===e.params.effect)for(let s=0;s<e.slides.length;s+=1){const a=e.slides[s],r=a.querySelectorAll(".swiper-carousel-animate-opacity");a.style.transitionDuration=`${t}ms`,r.forEach((e=>{e.style.transitionDuration=`${t}ms`}))}}))}})); 16//# sourceMappingURL=effect-carousel.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.