Commit 8b4e3741 authored by Michael Iseard's avatar Michael Iseard
Browse files

update citrus to 1.0.1

parent c76b73e0
.citrus-slider{display:block;overflow:hidden;z-index:0;position:relative}.citrus-slider:hover .slide-arrow{opacity:.4}.citrus-slider .citrus-slides,.citrus-slider .slide,.citrus-slider .slide-wrap{width:100%;height:100%}.citrus-slider .citrus-slides{position:absolute;overflow:hidden;z-index:0}.citrus-slider .slide-wrap{position:absolute;overflow:hidden;-webkit-animation-duration:inherit;animation-duration:inherit}.citrus-slider .slide{background-size:cover;background-position:center;background-repeat:no-repeat}.citrus-slider .slide-text{position:absolute;color:#fff;text-align:center;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transition:all .4s ease;transition:all .4s ease}.citrus-slider .hidden{display:none}.citrus-arrows .slide-arrow{position:absolute;top:50%;width:15%;height:100%;z-index:3;color:#fff;font-size:3em;font-style:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;opacity:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:opacity .6s ease;transition:opacity .6s ease;cursor:pointer}.citrus-arrows .slide-arrow:hover{opacity:1}.citrus-arrows .slide-arrow:before{content:'';background-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 300 600" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M34.697 75.628a14.998 14.998 0 0 1 24.371-16.556c73.606 73.602 194.123 194.119 230.325 230.321 5.858 5.858 5.858 15.356 0 21.214L59.07 540.93a15 15 0 0 1-24.374-16.559C63.579 457.12 100 360.35 100 300c0-60.35-36.421-157.12-65.303-224.372z" fill="%23fff"/></svg>');width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:25%}.citrus-arrows .left-arrow{left:0}.citrus-arrows .left-arrow:before{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.citrus-arrows .right-arrow{right:0}.citrus-indicators{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:10px;bottom:10%;left:50%;height:14px;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:2}.citrus-indicators:before{content:'';position:absolute;top:50%;background:#fff;border-radius:10px;width:calc(100% - 5px);height:14px;-webkit-transform:scaleX(0) translateY(-50%);transform:scaleX(0) translateY(-50%)}.citrus-indicators.transition-first:before{right:0;-webkit-animation:line-grow-left .6s forwards;animation:line-grow-left .6s forwards}.citrus-indicators.transition-last:before{left:0;-webkit-animation:line-grow-right .6s forwards;animation:line-grow-right .6s forwards}.citrus-indicators .slide-indicator{width:14px;height:14px;background:#fff;border-radius:50%;display:inline-block;position:relative;cursor:pointer}.citrus-indicators .slide-indicator:not(:first-child){margin-left:20px}.citrus-indicators .slide-indicator:before{content:'';background:0 0;border:2px solid #fff;position:absolute;width:50%;height:50%;border-radius:50%;left:50%;top:50%;-webkit-transform:translate(-50%,-50%) rotate(.001deg);transform:translate(-50%,-50%) rotate(.001deg);-webkit-transition:all .6s ease;transition:all .6s ease}.citrus-indicators .slide-indicator.current-indicator:before{width:200%;height:200%}@-webkit-keyframes line-grow-right{0%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:left;transform-origin:left}50%{-webkit-transform:scaleX(1) translateY(-50%) rotate(.001deg);transform:scaleX(1) translateY(-50%) rotate(.001deg)}100%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:right;transform-origin:right;border-radius:10px 0 0 10px}}@keyframes line-grow-right{0%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:left;transform-origin:left}50%{-webkit-transform:scaleX(1) translateY(-50%) rotate(.001deg);transform:scaleX(1) translateY(-50%) rotate(.001deg)}100%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:right;transform-origin:right;border-radius:10px 0 0 10px}}@-webkit-keyframes line-grow-left{0%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:right;transform-origin:right}50%{-webkit-transform:scaleX(1) translateY(-50%) rotate(.001deg);transform:scaleX(1) translateY(-50%) rotate(.001deg)}100%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:left;transform-origin:left;border-radius:0 10px 10px 0}}@keyframes line-grow-left{0%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:right;transform-origin:right}50%{-webkit-transform:scaleX(1) translateY(-50%) rotate(.001deg);transform:scaleX(1) translateY(-50%) rotate(.001deg)}100%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:left;transform-origin:left;border-radius:0 10px 10px 0}}.citrus-slider.effect-pan .current-slide .slide{-webkit-animation:background-pan linear 16s forwards;animation:background-pan linear 16s forwards}.citrus-slider.effect-pan.animating .prev-slide .slide{-webkit-animation:background-pan linear 16s forwards;animation:background-pan linear 16s forwards}@-webkit-keyframes background-pan{0%{-webkit-transform:scale(1.2) translate(5%,-5%);transform:scale(1.2) translate(5%,-5%)}100%{-webkit-transform:scale(1.2) rotate(.001deg) translate(-5%,5%);transform:scale(1.2) rotate(.001deg) translate(-5%,5%)}}@keyframes background-pan{0%{-webkit-transform:scale(1.2) translate(5%,-5%);transform:scale(1.2) translate(5%,-5%)}100%{-webkit-transform:scale(1.2) rotate(.001deg) translate(-5%,5%);transform:scale(1.2) rotate(.001deg) translate(-5%,5%)}}.citrus-slider.effect-parallax .current-slide .slide{-webkit-transform:scale(1.3);transform:scale(1.3)}.citrus-slider.effect-parallax.animating .prev-slide .slide{-webkit-transform:scale(1.3);transform:scale(1.3)}.citrus-slider.animate-text .slide-text{opacity:0}.citrus-slider.animate-text .prev-slide .slide-text,.citrus-slider.animate-text:not(.animating) .current-slide .slide-text{opacity:1}.citrus-slider.animate-text.animating .current-slide .slide-text{-webkit-transform:translate(-50%,-60%);transform:translate(-50%,-60%)}.citrus-slider.effect-zoom .current-slide .slide{-webkit-animation:background-zoom 16s forwards;animation:background-zoom 16s forwards}.citrus-slider.effect-zoom.animating .prev-slide .slide{-webkit-animation:background-zoom 16s forwards;animation:background-zoom 16s forwards}@-webkit-keyframes background-zoom{100%{-webkit-transform:scale(1.1) rotate(.001deg);transform:scale(1.1) rotate(.001deg)}}@keyframes background-zoom{100%{-webkit-transform:scale(1.1) rotate(.001deg);transform:scale(1.1) rotate(.001deg)}}.citrus-slider.transition-downandout .next-slide{opacity:1;z-index:0}.citrus-slider.transition-downandout .current-slide{z-index:1;opacity:1}.citrus-slider.transition-downandout .prev-slide{opacity:1;z-index:2;-webkit-animation-name:downandout;animation-name:downandout;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes downandout{0%{-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}50%{-webkit-transform:translate3d(0,0,0) scale(.75);transform:translate3d(0,0,0) scale(.75)}100%{-webkit-transform:translate3d(-100%,0,0) scale(.75);transform:translate3d(-100%,0,0) scale(.75)}}@keyframes downandout{0%{-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}50%{-webkit-transform:translate3d(0,0,0) scale(.75);transform:translate3d(0,0,0) scale(.75)}100%{-webkit-transform:translate3d(-100%,0,0) scale(.75);transform:translate3d(-100%,0,0) scale(.75)}}.citrus-slider.transition-fade .current-slide{z-index:1}.citrus-slider.transition-fade .prev-slide{-webkit-animation-name:fade;animation-name:fade;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes fade{0%{z-index:2;opacity:100%}99%{z-index:2;opacity:0}100%{opacity:0;z-index:0}}@keyframes fade{0%{z-index:2;opacity:100%}99%{z-index:2;opacity:0}100%{opacity:0;z-index:0}}.citrus-slider.transition-fallaway .current-slide{z-index:1}.citrus-slider.transition-fallaway.forwards .prev-slide{z-index:2;-webkit-transform-origin:top right;transform-origin:top right;-webkit-animation-name:fallaway;animation-name:fallaway;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;will-change:transform}.citrus-slider.transition-fallaway.backwards .prev-slide{z-index:1}.citrus-slider.transition-fallaway.backwards .current-slide{z-index:2;-webkit-transform-origin:top right;transform-origin:top right;-webkit-animation-name:fallaway-reverse;animation-name:fallaway-reverse;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes fallaway{0%{-webkit-transform:translate3d(0,0,0) rotate(0);transform:translate3d(0,0,0) rotate(0)}100%{-webkit-transform:translate3d(0,100%,0) rotate(-40deg);transform:translate3d(0,100%,0) rotate(-40deg)}}@keyframes fallaway{0%{-webkit-transform:translate3d(0,0,0) rotate(0);transform:translate3d(0,0,0) rotate(0)}100%{-webkit-transform:translate3d(0,100%,0) rotate(-40deg);transform:translate3d(0,100%,0) rotate(-40deg)}}@-webkit-keyframes fallaway-reverse{0%{-webkit-transform:translate3d(0,100%,0) rotate(-40deg);transform:translate3d(0,100%,0) rotate(-40deg)}100%{-webkit-transform:translate3d(0,0,0) rotate(0);transform:translate3d(0,0,0) rotate(0)}}@keyframes fallaway-reverse{0%{-webkit-transform:translate3d(0,100%,0) rotate(-40deg);transform:translate3d(0,100%,0) rotate(-40deg)}100%{-webkit-transform:translate3d(0,0,0) rotate(0);transform:translate3d(0,0,0) rotate(0)}}.citrus-slider.transition-pan .citrus-slides{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease;transition-timing-function:ease}.citrus-slider.transition-pan .slide-wrap{position:relative}.citrus-slider.transition-scope .current-slide{z-index:1}.citrus-slider.transition-scope.forwards .prev-slide{z-index:1}.citrus-slider.transition-scope.forwards .current-slide{-webkit-animation-name:scope;animation-name:scope;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.citrus-slider.transition-scope.backwards .prev-slide{z-index:2;-webkit-animation-name:scope-reverse;animation-name:scope-reverse;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes scope{0%{-webkit-clip-path:circle(0 at 50% 50%);clip-path:circle(0 at 50% 50%)}100%{-webkit-clip-path:circle(100%);clip-path:circle(100%)}}@keyframes scope{0%{-webkit-clip-path:circle(0 at 50% 50%);clip-path:circle(0 at 50% 50%)}100%{-webkit-clip-path:circle(100%);clip-path:circle(100%)}}@-webkit-keyframes scope-reverse{0%{-webkit-clip-path:circle(100%);clip-path:circle(100%)}100%{-webkit-clip-path:circle(0 at 50% 50%);clip-path:circle(0 at 50% 50%)}}@keyframes scope-reverse{0%{-webkit-clip-path:circle(100%);clip-path:circle(100%)}100%{-webkit-clip-path:circle(0 at 50% 50%);clip-path:circle(0 at 50% 50%)}}.citrus-slider.transition-slide .current-slide{z-index:1}.citrus-slider.transition-slide.forwards .prev-slide{-webkit-animation-name:slide-left;animation-name:slide-left;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.citrus-slider.transition-slide.backwards .prev-slide{-webkit-animation-name:slide-right;animation-name:slide-right;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slide-left{0%{z-index:2;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}99%{opacity:1;z-index:2;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{z-index:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slide-left{0%{z-index:2;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}99%{opacity:1;z-index:2;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{z-index:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes slide-right{0%{z-index:2;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}99%{z-index:2;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{z-index:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slide-right{0%{z-index:2;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}99%{z-index:2;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{z-index:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.citrus-slider.transition-zoom-fade .current-slide{z-index:1}.citrus-slider.transition-zoom-fade.forwards .prev-slide{-webkit-animation-name:zoom-fade;animation-name:zoom-fade;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.citrus-slider.transition-zoom-fade.backwards .prev-slide{z-index:1}.citrus-slider.transition-zoom-fade.backwards .current-slide{z-index:2;-webkit-animation-name:zoom-fade-reverse;animation-name:zoom-fade-reverse;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes zoom-fade{0%{-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);opacity:2;z-index:2}99%{-webkit-transform:scale(2) translateZ(0);transform:scale(2) translateZ(0);opacity:0;z-index:2}100%{-webkit-transform:scale(2) translateZ(0);transform:scale(2) translateZ(0);opacity:0;z-index:0}}@keyframes zoom-fade{0%{-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);opacity:2;z-index:2}99%{-webkit-transform:scale(2) translateZ(0);transform:scale(2) translateZ(0);opacity:0;z-index:2}100%{-webkit-transform:scale(2) translateZ(0);transform:scale(2) translateZ(0);opacity:0;z-index:0}}@-webkit-keyframes zoom-fade-reverse{0%{-webkit-transform:scale(2) translateZ(0);transform:scale(2) translateZ(0);opacity:0}99%{-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);opacity:1}100%{-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);opacity:1}}@keyframes zoom-fade-reverse{0%{-webkit-transform:scale(2) translateZ(0);transform:scale(2) translateZ(0);opacity:0}99%{-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);opacity:1}100%{-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);opacity:1}} .citrus-slider{display:block;overflow:hidden;z-index:0;position:relative}.citrus-slider:hover .slide-arrow{opacity:.4}.citrus-slider .citrus-slides,.citrus-slider .slide,.citrus-slider .slide-wrap{width:100%;height:100%}.citrus-slider .citrus-slides{position:absolute;overflow:hidden;z-index:0}.citrus-slider .slide-wrap{position:absolute;overflow:hidden;-webkit-animation-duration:inherit;animation-duration:inherit}.citrus-slider .slide{background-size:cover;background-position:center;background-repeat:no-repeat}.citrus-slider .slide-text{position:absolute;color:#fff;text-align:center;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transition:all .4s ease;transition:all .4s ease}.citrus-slider .hidden{display:none}.citrus-arrows .slide-arrow{position:absolute;top:50%;width:15%;height:100%;z-index:3;color:#fff;font-size:3em;font-style:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;opacity:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:opacity .6s ease;transition:opacity .6s ease;cursor:pointer}.citrus-arrows .slide-arrow:hover{opacity:1}.citrus-arrows .slide-arrow:before{content:'';background-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 300 600" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M34.697 75.628a14.998 14.998 0 0 1 24.371-16.556c73.606 73.602 194.123 194.119 230.325 230.321 5.858 5.858 5.858 15.356 0 21.214L59.07 540.93a15 15 0 0 1-24.374-16.559C63.579 457.12 100 360.35 100 300c0-60.35-36.421-157.12-65.303-224.372z" fill="%23fff"/></svg>');width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:25%}.citrus-arrows .left-arrow{left:0}.citrus-arrows .left-arrow:before{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.citrus-arrows .right-arrow{right:0}.citrus-indicators{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:10px;bottom:10%;left:50%;height:14px;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:2}.citrus-indicators:before{content:'';position:absolute;top:50%;background:#fff;border-radius:10px;width:calc(100% - 5px);height:14px;-webkit-transform:scaleX(0) translateY(-50%);transform:scaleX(0) translateY(-50%)}.citrus-indicators.transition-first:before{right:0;-webkit-animation:line-grow-left .6s forwards;animation:line-grow-left .6s forwards}.citrus-indicators.transition-last:before{left:0;-webkit-animation:line-grow-right .6s forwards;animation:line-grow-right .6s forwards}.citrus-indicators .slide-indicator{width:14px;height:14px;background:#fff;border-radius:50%;display:inline-block;position:relative;cursor:pointer}.citrus-indicators .slide-indicator:not(:first-child){margin-left:20px}.citrus-indicators .slide-indicator:before{content:'';background:0 0;border:2px solid #fff;position:absolute;width:50%;height:50%;border-radius:50%;left:50%;top:50%;-webkit-transform:translate(-50%,-50%) rotate(.001deg);transform:translate(-50%,-50%) rotate(.001deg);-webkit-transition:all .6s ease;transition:all .6s ease}.citrus-indicators .slide-indicator.current-indicator:before{width:200%;height:200%}@-webkit-keyframes line-grow-right{0%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:left;transform-origin:left}50%{-webkit-transform:scaleX(1) translateY(-50%) rotate(.001deg);transform:scaleX(1) translateY(-50%) rotate(.001deg)}100%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:right;transform-origin:right;border-radius:10px 0 0 10px}}@keyframes line-grow-right{0%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:left;transform-origin:left}50%{-webkit-transform:scaleX(1) translateY(-50%) rotate(.001deg);transform:scaleX(1) translateY(-50%) rotate(.001deg)}100%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:right;transform-origin:right;border-radius:10px 0 0 10px}}@-webkit-keyframes line-grow-left{0%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:right;transform-origin:right}50%{-webkit-transform:scaleX(1) translateY(-50%) rotate(.001deg);transform:scaleX(1) translateY(-50%) rotate(.001deg)}100%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:left;transform-origin:left;border-radius:0 10px 10px 0}}@keyframes line-grow-left{0%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:right;transform-origin:right}50%{-webkit-transform:scaleX(1) translateY(-50%) rotate(.001deg);transform:scaleX(1) translateY(-50%) rotate(.001deg)}100%{-webkit-transform:scaleX(0) translateY(-50%) rotate(.001deg);transform:scaleX(0) translateY(-50%) rotate(.001deg);-webkit-transform-origin:left;transform-origin:left;border-radius:0 10px 10px 0}}.citrus-slider.effect-pan .current-slide .slide{-webkit-animation:background-pan linear 16s forwards;animation:background-pan linear 16s forwards}.citrus-slider.effect-pan.animating .prev-slide .slide{-webkit-animation:background-pan linear 16s forwards;animation:background-pan linear 16s forwards}@-webkit-keyframes background-pan{0%{-webkit-transform:scale(1.2) translate(5%,-5%);transform:scale(1.2) translate(5%,-5%)}100%{-webkit-transform:scale(1.2) rotate(.001deg) translate(-5%,5%);transform:scale(1.2) rotate(.001deg) translate(-5%,5%)}}@keyframes background-pan{0%{-webkit-transform:scale(1.2) translate(5%,-5%);transform:scale(1.2) translate(5%,-5%)}100%{-webkit-transform:scale(1.2) rotate(.001deg) translate(-5%,5%);transform:scale(1.2) rotate(.001deg) translate(-5%,5%)}}.citrus-slider.animate-text .slide-text{opacity:0}.citrus-slider.animate-text .prev-slide .slide-text,.citrus-slider.animate-text:not(.animating) .current-slide .slide-text{opacity:1}.citrus-slider.animate-text.animating .current-slide .slide-text{-webkit-transform:translate(-50%,-60%);transform:translate(-50%,-60%)}.citrus-slider.effect-zoom .current-slide .slide{-webkit-animation:background-zoom 16s forwards;animation:background-zoom 16s forwards}.citrus-slider.effect-zoom.animating .prev-slide .slide{-webkit-animation:background-zoom 16s forwards;animation:background-zoom 16s forwards}@-webkit-keyframes background-zoom{100%{-webkit-transform:scale(1.1) rotate(.001deg);transform:scale(1.1) rotate(.001deg)}}@keyframes background-zoom{100%{-webkit-transform:scale(1.1) rotate(.001deg);transform:scale(1.1) rotate(.001deg)}}.citrus-slider.transition-downandout .next-slide{opacity:1;z-index:0}.citrus-slider.transition-downandout .current-slide{z-index:1;opacity:1}.citrus-slider.transition-downandout .prev-slide{opacity:1;z-index:2;-webkit-animation-name:downandout;animation-name:downandout;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes downandout{0%{-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}50%{-webkit-transform:translate3d(0,0,0) scale(.75);transform:translate3d(0,0,0) scale(.75)}100%{-webkit-transform:translate3d(-100%,0,0) scale(.75);transform:translate3d(-100%,0,0) scale(.75)}}@keyframes downandout{0%{-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}50%{-webkit-transform:translate3d(0,0,0) scale(.75);transform:translate3d(0,0,0) scale(.75)}100%{-webkit-transform:translate3d(-100%,0,0) scale(.75);transform:translate3d(-100%,0,0) scale(.75)}}.citrus-slider.transition-fade .current-slide{z-index:1}.citrus-slider.transition-fade .prev-slide{-webkit-animation-name:fade;animation-name:fade;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;will-change:opacity}@-webkit-keyframes fade{0%{z-index:2;opacity:100%}99%{z-index:2;opacity:0}100%{opacity:0;z-index:0}}@keyframes fade{0%{z-index:2;opacity:100%}99%{z-index:2;opacity:0}100%{opacity:0;z-index:0}}.citrus-slider.transition-fallaway .current-slide{z-index:1}.citrus-slider.transition-fallaway.forwards .prev-slide{z-index:2;-webkit-transform-origin:top right;transform-origin:top right;-webkit-animation-name:fallaway;animation-name:fallaway;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;will-change:transform}.citrus-slider.transition-fallaway.backwards .prev-slide{z-index:1}.citrus-slider.transition-fallaway.backwards .current-slide{z-index:2;-webkit-transform-origin:top right;transform-origin:top right;-webkit-animation-name:fallaway-reverse;animation-name:fallaway-reverse;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes fallaway{0%{-webkit-transform:translate3d(0,0,0) rotate(0);transform:translate3d(0,0,0) rotate(0)}100%{-webkit-transform:translate3d(0,100%,0) rotate(-40deg);transform:translate3d(0,100%,0) rotate(-40deg)}}@keyframes fallaway{0%{-webkit-transform:translate3d(0,0,0) rotate(0);transform:translate3d(0,0,0) rotate(0)}100%{-webkit-transform:translate3d(0,100%,0) rotate(-40deg);transform:translate3d(0,100%,0) rotate(-40deg)}}@-webkit-keyframes fallaway-reverse{0%{-webkit-transform:translate3d(0,100%,0) rotate(-40deg);transform:translate3d(0,100%,0) rotate(-40deg)}100%{-webkit-transform:translate3d(0,0,0) rotate(0);transform:translate3d(0,0,0) rotate(0)}}@keyframes fallaway-reverse{0%{-webkit-transform:translate3d(0,100%,0) rotate(-40deg);transform:translate3d(0,100%,0) rotate(-40deg)}100%{-webkit-transform:translate3d(0,0,0) rotate(0);transform:translate3d(0,0,0) rotate(0)}}.citrus-slider.transition-pan .citrus-slides{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease;transition-timing-function:ease;will-change:transform}.citrus-slider.transition-pan .slide-wrap{position:relative}.citrus-slider.transition-scope .current-slide{z-index:1}.citrus-slider.transition-scope.forwards .prev-slide{z-index:1}.citrus-slider.transition-scope.forwards .current-slide{-webkit-animation-name:scope;animation-name:scope;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;will-change:clip-path}.citrus-slider.transition-scope.backwards .prev-slide{z-index:2;-webkit-animation-name:scope-reverse;animation-name:scope-reverse;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;will-change:clip-path}@-webkit-keyframes scope{0%{-webkit-clip-path:circle(0 at 50% 50%);clip-path:circle(0 at 50% 50%)}100%{-webkit-clip-path:circle(100%);clip-path:circle(100%)}}@keyframes scope{0%{-webkit-clip-path:circle(0 at 50% 50%);clip-path:circle(0 at 50% 50%)}100%{-webkit-clip-path:circle(100%);clip-path:circle(100%)}}@-webkit-keyframes scope-reverse{0%{-webkit-clip-path:circle(100%);clip-path:circle(100%)}100%{-webkit-clip-path:circle(0 at 50% 50%);clip-path:circle(0 at 50% 50%)}}@keyframes scope-reverse{0%{-webkit-clip-path:circle(100%);clip-path:circle(100%)}100%{-webkit-clip-path:circle(0 at 50% 50%);clip-path:circle(0 at 50% 50%)}}.citrus-slider.transition-slide .current-slide{z-index:1}.citrus-slider.transition-slide.forwards .prev-slide{-webkit-animation-name:slide-left;animation-name:slide-left;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.citrus-slider.transition-slide.backwards .prev-slide{-webkit-animation-name:slide-right;animation-name:slide-right;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slide-left{0%{z-index:2;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}99%{opacity:1;z-index:2;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{z-index:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slide-left{0%{z-index:2;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}99%{opacity:1;z-index:2;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{z-index:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes slide-right{0%{z-index:2;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}99%{z-index:2;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{z-index:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slide-right{0%{z-index:2;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}99%{z-index:2;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{z-index:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.citrus-slider.transition-zoom-fade .current-slide{z-index:1}.citrus-slider.transition-zoom-fade.forwards .prev-slide{-webkit-animation-name:zoom-fade;animation-name:zoom-fade;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.citrus-slider.transition-zoom-fade.backwards .prev-slide{z-index:1}.citrus-slider.transition-zoom-fade.backwards .current-slide{z-index:2;-webkit-animation-name:zoom-fade-reverse;animation-name:zoom-fade-reverse;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes zoom-fade{0%{-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1);opacity:2;z-index:2}99%{-webkit-transform:translateZ(0) scale(2);transform:translateZ(0) scale(2);opacity:0;z-index:2}100%{-webkit-transform:translateZ(0) scale(2);transform:translateZ(0) scale(2);opacity:0;z-index:0}}@keyframes zoom-fade{0%{-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1);opacity:2;z-index:2}99%{-webkit-transform:translateZ(0) scale(2);transform:translateZ(0) scale(2);opacity:0;z-index:2}100%{-webkit-transform:translateZ(0) scale(2);transform:translateZ(0) scale(2);opacity:0;z-index:0}}@-webkit-keyframes zoom-fade-reverse{0%{-webkit-transform:scale(2) translateZ(0);transform:scale(2) translateZ(0);opacity:0}99%{-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);opacity:1}100%{-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);opacity:1}}@keyframes zoom-fade-reverse{0%{-webkit-transform:scale(2) translateZ(0);transform:scale(2) translateZ(0);opacity:0}99%{-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);opacity:1}100%{-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);opacity:1}}
\ No newline at end of file \ No newline at end of file
"use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var citrus=function(){var t=[],e=function t(e){_classCallCheck(this,t),this.sliderContainer=e,this.slideText=function(t){for(var e={},i=0;i<t.length;i++)e[i]=t[i];return e}(e.children),this.num=e.children.length,this.imgUrls=function(t){var e=Array.from(t.children).map(function(t){return t.getElementsByTagName("img")[0].src}),i=t.getElementsByTagName("img");for(;i[0];)i[0].remove();return e}(e),this.settings={animateText:!0,animationDuration:.8,autoHeight:!1,autoPause:!0,effect:!1,height:"100%",paused:!1,showArrows:!0,showIndicators:!0,slideDuration:5e3,slideIndex:0,slideTransition:"pan",width:"100%"}};e.prototype.goToSlide=function(t){this.settings.slideIndex=t,n(this)},e.prototype.stop=function(){this.settings.paused=!0,clearTimeout(this.intervalSlideChange)},e.prototype.play=function(){this.settings.paused=!1,r(this)},e.prototype.prevSlide=function(){this.settings.slideIndex--,n(this)},e.prototype.nextSlide=function(){this.settings.slideIndex++,n(this)},e.prototype.reset=function(){window.removeEventListener("scroll",a),clearTimeout(this.intervalSlideChange),s(this),r(this)};var i=Array.from(document.getElementsByClassName("citrus-slider"));function s(t){var e=t.settings.height;!0===t.settings.autoHeight&&(e=function(t){for(var e=0,i=0;i<t.num;i++){var s=t.slideText[i].offsetHeight;e<s&&(e=s)}return(e+=250)+"px"}(t)),t.sliderContainer.setAttribute("style","width:"+t.settings.width+"; height:"+e),t.sliderHeight=t.sliderContainer.offsetHeight,t.sliderContainer.setAttribute("class","citrus-slider"),t.sliderContainer.classList.add("transition-"+t.settings.slideTransition),t.settings.effect&&t.sliderContainer.classList.add("effect-"+t.settings.effect),t.settings.animateText&&t.sliderContainer.classList.add("animate-text"),function(t){var e=document.createDocumentFragment(),i=document.createElement("DIV");0==t.settings.showArrows?i.setAttribute("class","citrus-arrows hidden"):i.setAttribute("class","citrus-arrows");var s=document.createElement("DIV");s.setAttribute("class","slide-arrow left-arrow");var r=document.createElement("DIV");r.setAttribute("class","slide-arrow right-arrow"),i.appendChild(s),i.appendChild(r),e.appendChild(i),t.arrows=[s,r];var d=document.createElement("DIV");t.slides=d,d.setAttribute("class","citrus-slides"),d.setAttribute("style","animation-duration:"+t.settings.animationDuration+"s;transition-duration:"+t.settings.animationDuration+"s;"),"pan"===t.settings.slideTransition&&(d.style.width=t.num+"00%");"pan"===t.settings.slideTransition&&(d.style.width=t.num+"00%",d.style.transform="translateX(-"+t.settings.slideIndex/t.num*100+"%)");for(var l=0;l<t.num;l++){var o=document.createElement("DIV");l===t.settings.slideIndex?o.setAttribute("class","slide-wrap current-slide"):o.setAttribute("class","slide-wrap");var c=document.createElement("DIV");c.setAttribute("class","slide");var u=t.slideText[l];u.setAttribute("class","slide-text"),c.style.backgroundImage="url("+t.imgUrls[l]+")",o.appendChild(c),o.appendChild(u),d.appendChild(o)}e.appendChild(d),t.indicators=[];var g=document.createElement("DIV");0==t.settings.showIndicators?g.setAttribute("class","citrus-indicators hidden"):g.setAttribute("class","citrus-indicators");for(var m=0;m<t.num;m++){var h=document.createElement("SPAN");m===t.settings.slideIndex?h.setAttribute("class","slide-indicator current-indicator"):h.setAttribute("class","slide-indicator"),h.setAttribute("data-slide",m),g.appendChild(h),e.appendChild(g),t.indicators[m]=h}t.sliderContainer.innerHTML="",t.sliderContainer.appendChild(e),"parallax"===t.settings.effect&&function(t){a(t),window.addEventListener("scroll",function(){"parallax"===t.settings.effect&&a(t)})}(t);!function(t){var e=!0,i=!1,s=void 0;try{for(var r,a=t.arrows[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var d=r.value;d.addEventListener("click",function(e){t.settings.autoPause&&(t.settings.paused=!0),t.sliderContainer.classList.contains("animating")||(t.settings.prevIndex=t.settings.slideIndex,e.target.classList.contains("left-arrow")?t.settings.slideIndex--:e.target.classList.contains("right-arrow")&&t.settings.slideIndex++,n(t))})}}catch(t){i=!0,s=t}finally{try{!e&&a.return&&a.return()}finally{if(i)throw s}}var l=!0,o=!1,c=void 0;try{for(var u,g=t.indicators[Symbol.iterator]();!(l=(u=g.next()).done);l=!0){var m=u.value;m.addEventListener("click",function(e){t.settings.autoPause&&(t.settings.paused=!0),t.sliderContainer.classList.contains("animating")||!1===e.target.classList.contains("current-indicator")&&(t.settings.prevIndex=t.settings.slideIndex,t.settings.slideIndex=Number(e.target.dataset.slide),n(t))})}}catch(t){o=!0,c=t}finally{try{!l&&g.return&&g.return()}finally{if(o)throw c}}}(t)}(t)}function n(t){if(clearTimeout(t.intervalSlideChange),t.prev=t.sliderContainer.getElementsByClassName("current-slide")[0],t.settings.slideIndex<0?(t.settings.slideIndex=t.num-1,t.num&&(t.indicators[0].parentElement.classList.add("transition-last"),setTimeout(function(){t.indicators[0].parentElement.classList.remove("transition-last")},1e3))):t.settings.slideIndex>t.num-1&&(t.settings.slideIndex=0,t.num&&(t.indicators[0].parentElement.classList.add("transition-first"),setTimeout(function(){t.indicators[0].parentElement.classList.remove("transition-first")},1e3))),t.num>1){t.sliderContainer.classList.remove("forwards","backwards");for(var e=0;e<t.num;e++)t.slides.children[e].classList.remove("current-slide","prev-slide","next-slide"),t.num&&t.indicators[e].classList.remove("current-indicator");t.settings.prevIndex<t.settings.slideIndex?t.sliderContainer.classList.add("forwards"):t.sliderContainer.classList.add("backwards"),t.prev.classList.add("prev-slide"),t.settings.slideIndex===t.num-1?t.slides.children[0].classList.add("next-slide"):t.slides.children[t.settings.slideIndex+1]&&t.slides.children[t.settings.slideIndex+1].classList.add("next-slide"),t.slides.children[t.settings.slideIndex].classList.add("current-slide"),t.num&&t.indicators[t.settings.slideIndex].classList.add("current-indicator"),"pan"===t.settings.slideTransition&&(t.sliderContainer.children[1].style.transform="translateX(-"+t.settings.slideIndex/t.num*100+"%)"),t.sliderContainer.classList.add("animating"),t.intervalPrevAnim=setTimeout(function(){t.sliderContainer.classList.remove("animating")},1e3*t.settings.animationDuration),r(t)}}function r(t){!1===t.settings.paused&&(t.intervalSlideChange=setTimeout(function(){t.settings.prevIndex=t.settings.slideIndex,t.settings.slideIndex++,n(t)},t.settings.slideDuration))}function a(t){var e=window.innerHeight;if(function(t,e,i){var s,n=t.getBoundingClientRect().top+i,r=t.getBoundingClientRect().bottom-i;s=!0===e?n<window.innerHeight&&r>=0:n>=0&&r<=window.innerHeight;return s}(t.sliderContainer,!0,0))for(var i=t.sliderContainer.getBoundingClientRect().top/e*(.3*t.sliderHeight),s=0;s<t.num;s++)t.slides.children[s].children[0].style.backgroundPosition="center calc(50% - "+i+"px)"}return i.forEach(function(n,a){t[a]=new e(i[a]);var d=t[a];!function(t,e){if(t.sliderContainer.hasAttribute("data-citrus")){var i=JSON.parse(t.sliderContainer.dataset.citrus),s=!0,n=!1,r=void 0;try{for(var a,d=Object.keys(i)[Symbol.iterator]();!(s=(a=d.next()).done);s=!0){var l=a.value;t.settings[l]=i[l]}}catch(t){n=!0,r=t}finally{try{!s&&d.return&&d.return()}finally{if(n)throw r}}t.sliderContainer.removeAttribute("data-citrus"),t.settings.slideIndex>t.num||t.settings.slideIndex<=0?t.settings.slideIndex=0:t.settings.slideIndex--}"function"==typeof e&&e(t)}(d,s),r(d)}),t}(); "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var citrus=function(){var t=[],e=function t(e){_classCallCheck(this,t),this.sliderContainer=e,this.slideText=function(t){for(var e={},i=0;i<t.length;i++)e[i]=t[i];return e}(e.children),this.num=e.children.length,this.imgUrls=function(t){var e=Array.from(t.children).map(function(t){return t.getElementsByTagName("img")[0].src}),i=t.getElementsByTagName("img");for(;i[0];)i[0].remove();return e}(e),this.settings={animateText:!0,animationDuration:.8,autoHeight:!1,autoPause:!0,effect:!1,height:"100%",paused:!1,showArrows:!0,showIndicators:!0,slideDuration:5e3,slideIndex:0,slideTransition:"pan",width:"100%"}};e.prototype.goToSlide=function(t){this.settings.slideIndex=t,n(this)},e.prototype.stop=function(){this.settings.paused=!0,clearTimeout(this.intervalSlideChange)},e.prototype.play=function(){this.settings.paused=!1,r(this)},e.prototype.prevSlide=function(){this.settings.slideIndex--,n(this)},e.prototype.nextSlide=function(){this.settings.slideIndex++,n(this)},e.prototype.reset=function(){window.removeEventListener("scroll",a),clearTimeout(this.intervalSlideChange),s(this),r(this)};var i=Array.from(document.getElementsByClassName("citrus-slider"));function s(t){var e=t.settings.height;!0===t.settings.autoHeight&&(e=function(t){for(var e=0,i=0;i<t.num;i++){var s=t.slideText[i].offsetHeight;e<s&&(e=s)}return(e+=250)+"px"}(t)),t.sliderContainer.setAttribute("style","width:"+t.settings.width+"; height:"+e),t.sliderHeight=t.sliderContainer.offsetHeight,t.sliderContainer.setAttribute("class","citrus-slider"),t.sliderContainer.classList.add("transition-"+t.settings.slideTransition),t.settings.effect&&t.sliderContainer.classList.add("effect-"+t.settings.effect),t.settings.animateText&&t.sliderContainer.classList.add("animate-text"),function(t){var e=document.createDocumentFragment(),i=document.createElement("DIV");0==t.settings.showArrows?i.setAttribute("class","citrus-arrows hidden"):i.setAttribute("class","citrus-arrows");var s=document.createElement("DIV");s.setAttribute("class","slide-arrow left-arrow");var r=document.createElement("DIV");r.setAttribute("class","slide-arrow right-arrow"),i.appendChild(s),i.appendChild(r),e.appendChild(i),t.arrows=[s,r];var d=document.createElement("DIV");t.slides=d,d.setAttribute("class","citrus-slides"),d.setAttribute("style","animation-duration:"+t.settings.animationDuration+"s;transition-duration:"+t.settings.animationDuration+"s;"),"pan"===t.settings.slideTransition&&(d.style.width=t.num+"00%");"pan"===t.settings.slideTransition&&(d.style.width=t.num+"00%",d.style.transform="translateZ(0) translateX(-"+t.settings.slideIndex/t.num*100+"%)");for(var l=0;l<t.num;l++){var o=document.createElement("DIV");l===t.settings.slideIndex?o.setAttribute("class","slide-wrap current-slide"):o.setAttribute("class","slide-wrap");var c=document.createElement("DIV");c.setAttribute("class","slide");var u=t.slideText[l];u.setAttribute("class","slide-text"),c.style.backgroundImage="url("+t.imgUrls[l]+")",o.appendChild(c),o.appendChild(u),d.appendChild(o)}e.appendChild(d),t.indicators=[];var g=document.createElement("DIV");0==t.settings.showIndicators?g.setAttribute("class","citrus-indicators hidden"):g.setAttribute("class","citrus-indicators");for(var m=0;m<t.num;m++){var f=document.createElement("SPAN");m===t.settings.slideIndex?f.setAttribute("class","slide-indicator current-indicator"):f.setAttribute("class","slide-indicator"),f.setAttribute("data-slide",m),g.appendChild(f),e.appendChild(g),t.indicators[m]=f}t.sliderContainer.innerHTML="",t.sliderContainer.appendChild(e),"parallax"===t.settings.effect&&function(t){a(t),window.addEventListener("scroll",function(){"parallax"===t.settings.effect&&a(t)})}(t);!function(t){var e=!0,i=!1,s=void 0;try{for(var r,a=t.arrows[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var d=r.value;d.addEventListener("click",function(e){t.settings.autoPause&&(t.settings.paused=!0),t.sliderContainer.classList.contains("animating")||(t.settings.prevIndex=t.settings.slideIndex,e.target.classList.contains("left-arrow")?t.settings.slideIndex--:e.target.classList.contains("right-arrow")&&t.settings.slideIndex++,n(t))})}}catch(t){i=!0,s=t}finally{try{!e&&a.return&&a.return()}finally{if(i)throw s}}var l=!0,o=!1,c=void 0;try{for(var u,g=t.indicators[Symbol.iterator]();!(l=(u=g.next()).done);l=!0){var m=u.value;m.addEventListener("click",function(e){t.settings.autoPause&&(t.settings.paused=!0),t.sliderContainer.classList.contains("animating")||!1===e.target.classList.contains("current-indicator")&&(t.settings.prevIndex=t.settings.slideIndex,t.settings.slideIndex=Number(e.target.dataset.slide),n(t))})}}catch(t){o=!0,c=t}finally{try{!l&&g.return&&g.return()}finally{if(o)throw c}}}(t)}(t)}function n(t){if(clearTimeout(t.intervalSlideChange),t.prev=t.sliderContainer.getElementsByClassName("current-slide")[0],t.settings.slideIndex<0?(t.settings.slideIndex=t.num-1,t.num&&(t.indicators[0].parentElement.classList.add("transition-last"),setTimeout(function(){t.indicators[0].parentElement.classList.remove("transition-last")},1e3))):t.settings.slideIndex>t.num-1&&(t.settings.slideIndex=0,t.num&&(t.indicators[0].parentElement.classList.add("transition-first"),setTimeout(function(){t.indicators[0].parentElement.classList.remove("transition-first")},1e3))),t.num>1){t.sliderContainer.classList.remove("forwards","backwards");for(var e=0;e<t.num;e++)t.slides.children[e].classList.remove("current-slide","prev-slide","next-slide"),t.num&&t.indicators[e].classList.remove("current-indicator");t.settings.prevIndex<t.settings.slideIndex?t.sliderContainer.classList.add("forwards"):t.sliderContainer.classList.add("backwards"),t.prev.classList.add("prev-slide"),t.settings.slideIndex===t.num-1?t.slides.children[0].classList.add("next-slide"):t.slides.children[t.settings.slideIndex+1]&&t.slides.children[t.settings.slideIndex+1].classList.add("next-slide"),t.slides.children[t.settings.slideIndex].classList.add("current-slide"),t.num&&t.indicators[t.settings.slideIndex].classList.add("current-indicator"),"pan"===t.settings.slideTransition&&(t.sliderContainer.children[1].style.transform="translateX(-"+t.settings.slideIndex/t.num*100+"%)"),t.sliderContainer.classList.add("animating"),t.intervalPrevAnim=setTimeout(function(){t.sliderContainer.classList.remove("animating")},1e3*t.settings.animationDuration),r(t)}}function r(t){!1===t.settings.paused&&(t.intervalSlideChange=setTimeout(function(){t.settings.prevIndex=t.settings.slideIndex,t.settings.slideIndex++,n(t)},t.settings.slideDuration))}function a(t){var e=window.innerHeight;if(function(t,e,i){var s,n=t.getBoundingClientRect().top+i,r=t.getBoundingClientRect().bottom-i;s=!0===e?n<window.innerHeight&&r>=0:n>=0&&r<=window.innerHeight;return s}(t.sliderContainer,!0,0))for(var i=t.sliderContainer.getBoundingClientRect().top/e*(.3*t.sliderHeight),s=0;s<t.num;s++)t.slides.children[s].children[0].style.transform="translate3d(0px, 0px, 0px) scale(1.3) translateY( "+-i+"px )"}return i.forEach(function(n,a){t[a]=new e(i[a]);var d=t[a];!function(t,e){if(t.sliderContainer.hasAttribute("data-citrus")){var i=JSON.parse(t.sliderContainer.dataset.citrus),s=!0,n=!1,r=void 0;try{for(var a,d=Object.keys(i)[Symbol.iterator]();!(s=(a=d.next()).done);s=!0){var l=a.value;t.settings[l]=i[l]}}catch(t){n=!0,r=t}finally{try{!s&&d.return&&d.return()}finally{if(n)throw r}}t.sliderContainer.removeAttribute("data-citrus"),t.settings.slideIndex>t.num||t.settings.slideIndex<=0?t.settings.slideIndex=0:t.settings.slideIndex--}"function"==typeof e&&e(t)}(d,s),r(d)}),t}();
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment