25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

2 lines
20 KiB

  1. (function(){function g(e,s){this.slides=[],this.slider=e,this.options=s,this.timer=this.onTimer.bind(this),e[0].opt.fallbacks.disableFocusListener||p(window).on("focus.rsaddonbeforeafter",this.onFocus.bind(this)),e.one("revolution.slide.onloaded",this.onLoaded.bind(this)).one("rsBeforeAfterDestroyed",this.destroy.bind(this))}function w(e,s,t,r,h,o,n,i,a,f,l,u,d,c){this.id=e,this.bg=s,this.index=c,this.slide=r,this.inner=t,this.after=a,this.before=f,this.slider=l,this.videoBg=h,this.bgInner=n,this.globals=u,this.videoSolo=o,this.carousel=d,this.animateOut=i.out,this.direction=i.direction,this.moveto=i.moveto.split("|"),this.timing=.001*parseInt(i.time,10),this.delay=.001*parseInt(i.delay,10),e=i.easing.split("."),this.animation=punchgs[e[0]][e[1]],this.direction==="horizontal"?(this.normal=!0,this.axis="left",this.size="width"):(this.axis="top",this.size="height"),this.globals.hasOwnProperty("onClick")&&(e=this.globals.onClick.easing.split("."),this.time=.001*parseInt(this.globals.onClick.time,10),this.transition=punchgs[e[0]][e[1]]),this.mouseUp=this.onMouseUp.bind(this),this.mouseMove=this.onMouseMove.bind(this),this.mouseClick=this.onClick.bind(this),this.complete=this.onComplete.bind(this),i.hasOwnProperty("bounceArrows")&&(this.bounceArrows=i.bounceArrows,this.bounceDelay=parseInt(i.bounceDelay,10),this.readyArrows=this.arrowsReady.bind(this),this.bounceDelay&&(this.delayBounce=this.bounceReady.bind(this))),i.hasOwnProperty("shiftOffset")&&(this.shiftArrows=i.shiftOffset),this.videoBg&&!this.videoSolo&&(this.videoPlay=this.playVideo.bind(this)),this.createDrag(),p.data(r[0],"rs-addon-beforeafter",this)}function T(e){this.style.zIndex=(e+5).toString()}var p;window.RevSliderBeforeAfter=function(e,s,t){e&&s&&typeof punchgs<"u"&&(p=e,p.event.special.rsBeforeAfterDestroyed={remove:function(r){r.handler()}},new g(s,t))},g.prototype={init:function(){var s=this.slider[0].opt,e=s.responsiveLevels,s=s.gridwidth;Array.isArray(e)||(e=[e]),Array.isArray(s)||(s=[s]),this.levels=e,this.widths=s,this.resize=this.onResize.bind(this),this.slider.addClass("rs-before-after-addon").on("revolution.slide.onbeforeswap",this.beforeSwap.bind(this)).on("revolution.slide.onafterswap",this.afterSwap.bind(this))},onLoaded:function(){var e=this,s=this.slider[0].id,t=this.slider.find(".tp-static-layers");(this.carousel=this.options.carousel)&&this.slider.addClass("before-after-carousel"),t.length||(t=this.slider.find(".tp-revslider-mainul")),this.slider.data("before-after-placer",t).data("beforeafter-slides").each(function(){var r=p(this),n=r.find('.tp-caption[data-beforeafter="before"]').toArray().map(function(c){return p(c).closest(".tp-parallax-wrap")}),i=r.find('.tp-caption[data-beforeafter="after"]').toArray().map(function(c){return p(c).closest(".tp-parallax-wrap")}),h=r.data("beforeafter-options");r.addClass("rs-addon-beforeafter rs-addon-beforeafter-"+h.direction),e.carousel||r.find("*").attr("draggable",!1);var o=p('<div class="rs-addon-beforeafter-revealer rs-addon-beforeafter-before" />').append(n);1<n.length?o.insertAfter(r.find(".tp-parallax-wrap").last()):o.appendTo(r);var n=p('<div class="rs-addon-beforeafter-revealer rs-addon-beforeafter-after" />'),i=p('<div class="rs-addon-beforeafter-inner" />').append(i)[0],a=document.createElement("div"),f=document.createElement("div"),l=h.bgType;if(l==="image"||l==="external")a.style.backgroundImage="url("+h.bgImage+")",a.style.backgroundPosition=h.bgPos,a.style.backgroundRepeat=h.bgRepeat,a.style.backgroundSize=h.bgFit;else if(l==="solid")a.style.background=h.bgColor;else if(l!=="trans"&&(l=r.data("beforeafter-video"))&&(l.closest(".tp-parallax-wrap").addClass("rs-video-beforeafter"),!e.carousel))var u=l,d=r.find(".rs-background-video-layer").length===0;r.attr("data-link")&&r.attr("data-slideindex")==="back"&&(o.addClass("rs-beforeafter-pointers"),n.addClass("rs-beforeafter-pointers")),l="rs-addon-beforeafter-bg-inner",h.filter&&(l+=" "+h.filter),f.className="rs-addon-beforeafter-bg",a.className=l,f.appendChild(a),r.find(".slotholder").append(f),n.append(i).insertBefore(o),e.slides[e.slides.length]=new w(s,f,i,r,u,d,a,h,n[0],o[0],e.slider,e.options,e.carousel,r.attr("data-index"))}),this.init()},beforeSwap:function(e,s){if(!this.checkRemoved()){this.slide=!1;var t;s.currentslide.length&&(t=p.data(s.currentslide[0],"rs-addon-beforeafter"))&&(t.removeEvents(),t[t.animateOut]()),(t=p.data(s.nextslide[0],"rs-addon-beforeafter"))&&t.setup&&t.reset()}},afterSwap:function(e,s){!this.checkRemoved()&&s.currentslide.hasClass("rs-addon-beforeafter")&&(this.slide=p.data(s.currentslide[0],"rs-addon-beforeafter"),this.slide.setup||(this.onResize(!1,!0),this.slide.onSetup(),this.slider.on("revolution.slide.afterdraw",this.resize)),this.slide.reset(!0),this.slide.reveal(),this.slide.addEvents())},checkRemoved:function(){return this.slider&&document.body.contains(this.slider[0])?!1:(this.destroy(),!0)},onVideoPlay:function(e,s){this.slide&&this.slide.videoBg&&!this.slide.videoSolo&&this.slide.playVideo()},destroy:function(){if(p(window).off(".rsaddonbeforeafter"),this.slides)for(;this.slides.length;)this.slides[0].destroy(),this.slides.shift();for(var e in this)this.hasOwnProperty(e)&&delete this[e]},onFocus:function(){clearTimeout(this.timer);for(var e=this.slides.length;e--;)this.slides[e].supress=!0;this.focusTimer=setTimeout(this.timer,100)},onTimer:function(){for(var e=this.slides.length;e--;)this.slides[e].supress=!1},onResize:function(e,s){if(e&&this.carousel)clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(this.resize,250);else{var t=this.slide;if(t){var r,h=0,o=this.levels.length;if(this.carousel)var n=t.slide.width(),i=t.slide.height();else n=this.slider.width(),i=this.slider.height();for(r=0;r<o;r++)n<this.levels[r]&&(h=r);s||(punchgs.TweenLite.killTweensOf(t.bg),punchgs.TweenLite.killTweensOf(t.after),punchgs.TweenLite.killTweensOf(t.before),punchgs.TweenLite.killTweensOf(t.revealBtn),t.revealLine&&punchgs.TweenLite.killTweensOf(t.revealLine));for(var o=n/this.widths[h],a=this.slides.length;a--;)r=this.slides[a],r.level=h,r.scale=o,r.blurred=!1,r.sliderWidth=n,r.sliderHeight=i,r.normal?(r.bgInner.style.width=n+"px",r.inner.style.width=n+"px"):(r.bgInner.style.height=i+"px",r.inner.style.height=i+"px");s||(t.normal?(n=t.moveto[t.level],n.search("%")===-1&&(n=(parseInt(n,10)*o).toFixed(0)+"px"),i="65%"):(n="50%",i=t.moveto[t.level],i.search("%")===-1&&(i=(parseInt(i,10)*o).toFixed(0)+"px")),t.resetDrag(n,i))}}}},w.prototype={createDrag:function(){var i=this.globals,e=i.boxShadow,s=i.arrowStyles,t=i.arrowShadow,r=i.arrowBorder,h=i.dividerStyles,o=i.dividerShadow,n=parseInt(s.spacing,10),i='<span class="rs-addon-beforeafter-btn rs-before-after-element rs-addon-beforeafter-btn-'+this.direction+'" style="color: '+s.color+";font-size: "+parseInt(s.size,10)+"px;background-color:"+s.bgColor+";padding: "+parseInt(s.padding,10)+"px;border-radius: "+s.borderRadius+";cursor: "+i.cursor;e&&(i+="; box-shadow: 0px 0px "+parseInt(e.blur,10)+"px "+parseInt(e.strength,10)+"px "+e.color+";"),r&&(i+="; border: "+parseInt(r.size,10)+"px solid "+r.color+";"),t&&(i+="; text-shadow: 0px 0px "+parseInt(t.blur,10)+"px "+t.color+";");var a,f="",l=a="",u="",d=this.shiftArrows?" rs-"+this.id+"-"+this.index+"-rs-beforeafter-shift":"";this.normal?(t="padding-right",r="padding-left",e=s.leftIcon,s=s.rightIcon,this.bounceArrows&&(a=" rs-"+this.id+"-"+this.index+"-rs-beforeafter-bounce-",f=a+"left",a+="right"),this.shiftArrows&&(l="transform: translateX(-"+this.shiftArrows+"px);",u="transform: translateX("+this.shiftArrows+"px);")):(t="margin-bottom",r="margin-top",e=s.topIcon,s=s.bottomIcon,this.bounceArrows&&(a=" rs-"+this.id+"-"+this.index+"-rs-beforeafter-bounce-",f=a+"top",a+="bottom"),this.shiftArrows&&(l="transform: translateY(-"+this.shiftArrows+"px);",u="transform: translateY("+this.shiftArrows+"px);")),i+='" />',this.btn1=p('<i class="'+e+d+f+'" style="'+l+t+": "+n+'px">'),this.btn2=p('<i class="'+s+d+a+'" style="'+u+r+": "+n+'px">'),this.btn=p(i).on("mousedown touchstart",this.onMouseDown.bind(this)),this.btn[0].appendChild(this.btn1[0]),this.btn[0].appendChild(this.btn2[0]),n=parseInt(h.width,10),i=[],n&&(h='<span class="rs-addon-beforeafter-line rs-before-after-element rs-beforeafter-'+this.direction+'" style="'+this.size+": "+n+"px; "+(this.normal?"margin-left: ":"margin-top: ")+-Math.floor(.5*n)+"px; background-color: "+h.color,o&&(h+="; box-shadow: 0px 0px "+parseInt(o.blur,10)+"px "+parseInt(o.strength,10)+"px "+o.color+";"),this.revealLine=p(h+'"></span>')[0],this.pixel=n%2===0?0:1,i[0]=this.revealLine),this.revealBtn=this.btn[0],i[i.length]=this.revealBtn,this.carousel?this.slide.append(i):p(i).insertAfter(this.slider.data("before-after-placer"))},onSetup:function(){var s=this.btn.outerWidth(!0),e=this.btn.outerHeight(!0),s=Math.max(s,e),t=e=0;this.revealLine&&(this.normal?e+=this.pixel:t+=this.pixel);var r=Math.floor(.5*s);this.buffer=r,this.setup=!0,this.btn.css({width:s,height:s,marginTop:-r+t,marginLeft:-r+e}),delete this.btn},addEvents:function(){var e=this.carousel?this.slide:this.slider;e.on("mouseup.rsaddonbeforeafter mouseleave.rsaddonbeforeafter touchend.rsaddonbeforeafter",this.mouseUp).on("mousemove.rsaddonbeforeafter touchmove.rsaddonbeforeafter",this.mouseMove),this.transition&&e.on("click.rsaddonbeforeafter",this.mouseClick)},removeEvents:function(){this.onMouseUp(),(this.carousel?this.slide:this.slider).off(".rsaddonbeforeafter"),this.shiftArrows&&this.btn1.off(".rsaddonbeforeafter"),this.bounceDelay&&clearTimeout(this.bounceTimer)},updateDrag:function(e,s){if(this.before){if(this.normal){var t=e,r=this.sliderWidth-e;s=Math.min(this.sliderHeight-this.buffer,Math.max(s,this.buffer))}else t=s,r=this.sliderHeight-s,e=Math.min(this.sliderWidth-this.buffer,Math.max(e,this.buffer));this.revealBtn.style.left=e+"px",this.revealBtn.style.top=s+"px",this.before.style[this.size]=t+"px",this.after.style[this.size]=r+"px",this.bg.style[this.size]=r+"px",this.revealLine&&(this.revealLine.style[this.axis]=t+"px")}},resetDrag:function(e,s){if(this.before){if(this.normal){var t=e,r=parseInt(e,10);r=e.search("%")!==-1?100-r+"%":this.sliderWidth-r+"px"}else t=s,r=parseInt(s,10),r=s.search("%")!==-1?100-r+"%":this.sliderHeight-r+"px";this.revealBtn.style.left=e,this.revealBtn.style.top=s,this.before.style[this.size]=t,this.after.style[this.size]=r,this.bg.style[this.size]=r,this.revealLine&&(this.revealLine.style[this.axis]=t)}},onMouseDown:function(e){this.canDrag=this.prevent=!0,this.slider.addClass("dragging"),this.shiftArrows&&(this.btn1.off(".rsaddonbeforeafter"),this.slider.addClass("rs-beforeafter-shift-arrows")),this.bounceArrows&&(this.bounceDelay&&clearTimeout(this.bounceTimer),this.slider.removeClass("rs-beforeafter-bounce-arrows")),this.carousel&&e.stopImmediatePropagation()},onMouseMove:function(e){if(!this.supress&&this.canDrag){var t=e.originalEvent.touches;t&&(e=t[0]);var s=(this.carousel?this.slide:this.slider).offset(),t=e.pageX-s.left;e=e.pageY-s.top,(this.normal?0<t&&t<this.sliderWidth:0<e&&e<this.sliderHeight)&&this.updateDrag(t,e)}},onMouseUp:function(e){this.canDrag=!1,this.slider.removeClass("dragging"),e&&this.bounceArrows==="infinite"&&(this.bounceDelay?this.bounceTimer=setTimeout(this.delayBounce,this.bounceDelay):(this.shiftArrows&&this.slider.removeClass("rs-beforeafter-shift-arrows"),this.slider.addClass("rs-beforeafter-bounce-arrows")))},onClick:function(e){if(!this.supress&&!this.blurred)if(this.prevent)this.prevent=!1;else{var s=e.target,t=/tparrows|tp-bullet|tp-tab|tp-thumb|tp-withaction/,r;if(!(r=e.target.tagName==="A"||t.test(s.className)))e:{for(;s.parentNode;)if(s=s.parentNode,s.tagName==="A"||t.test(s.className)){r=!0;break e}r=!1}r||(s=(this.carousel?this.slide:this.slider).offset(),t=e.pageX-s.left,r=e.pageY-s.top,this.normal?(s=t,e=this.sliderWidth,r=Math.min(this.sliderHeight-this.buffer,Math.max(r,this.buffer))):(s=r,e=this.sliderHeight,t=Math.min(this.sliderWidth-this.buffer,Math.max(t,this.buffer))),punchgs.TweenLite.to(this.revealBtn,this.time,{left:t,top:r,ease:this.transition}),t={ease:this.transition},t[this.size]=e-s,punchgs.TweenLite.to(this.bg,this.time,t),t={ease:this.transition},t[this.size]=s,punchgs.TweenLite.to(this.before,this.time,t),t={ease:this.transition},t[this.size]=e-s,punchgs.TweenLite.to(this.after,this.time,t),t={ease:this.transition},t[this.axis]=s,this.revealLine&&punchgs.TweenLite.to(this.revealLine,this.time,t))}},bounceReady:function(){this.slider.removeClass("rs-beforeafter-shift-arrows").addClass("rs-beforeafter-bounce-arrows")},arrowsReady:function(){this.bounceDelay?this.bounceTimer=setTimeout(this.delayBounce,this.bounceDelay):this.bounceReady()},onComplete:function(){this.supress=!1,this.shiftArrows?(this.bounceArrows&&this.btn1.one("webkitTransitionEnd.rsaddonbeforeafter transitionend.rsaddonbeforeafter",this.readyArrows),this.slider.addClass("rs-beforeafter-shift-arrows")):this.bounceArrows&&this.arrowsReady()},fade:function(){punchgs.TweenLite.to(this.bg,.3,{opacity:0,ease:punchgs.Power2.easeInOut}),punchgs.TweenLite.to(this.revealBtn,.3,{autoAlpha:0,ease:punchgs.Power2.easeInOut}),this.revealLine&&punchgs.TweenLite.to(this.revealLine,.3,{autoAlpha:0,ease:punchgs.Power2.easeInOut})},collapse:function(){e={ease:this.animation},e[this.size]=0,punchgs.TweenLite.to(this.bg,this.timing,e);var e={ease:this.animation};e[this.size]="100%",punchgs.TweenLite.to(this.before,this.timing,e),e={ease:this.animation},e[this.size]=0,punchgs.TweenLite.to(this.after,this.timing,e),e={autoAlpha:0,ease:this.animation},e[this.axis]="100%",this.revealLine&&punchgs.TweenLite.to(this.revealLine,this.timing,e),e={autoAlpha:0,ease:this.animation},e[this.axis]="100%",punchgs.TweenLite.to(this.revealBtn,this.timing,e)},reset:function(e){this.supress=!0,this.normal?(this.revealBtn.style.top="65%",this.revealBtn.style.left="100%"):(this.revealBtn.style.top="100%",this.revealBtn.style.left="50%"),this.before.style[this.size]="100%",this.after.style[this.size]="0",this.bg.style[this.size]="0",this.revealLine&&(this.revealLine.style[this.axis]="100%"),this.shiftArrows&&this.btn1.off(".rsaddonbeforeafter"),this.bounceDelay&&clearTimeout(this.bounceTimer),e&&(this.shiftArrows&&this.slider.removeClass("rs-beforeafter-shift-arrows"),this.bounceArrows&&this.slider.removeClass("rs-beforeafter-bounce-arrows"))},playVideo:function(){p.fn.revolution.playAnimationFrame({caption:this.videoBg,opt:this.slider[0].opt,frame:"frame_0",triggerdirection:"in",triggerframein:"frame_0",triggerframeout:"frame_999"})},checkVideo:function(){var e=this.slide.find(".rs-background-video-layer video");e.length?e.off(".rsaddonbeforeafter").on("play.rsaddonbeforeafter",this.videoPlay):this.playVideo()},reveal:function(){this.videoBg&&(this.videoSolo?this.playVideo():this.checkVideo());var e=this.moveto[this.level],s=e.search("%")!==-1,t=parseInt(e,10);if(this.normal){if(s){var r=s=e;t=100-t+"%"}else e=s=r=t*this.scale,t=this.sliderWidth-e;var h="65%"}else s?(h=s=e,t=100-t+"%"):(e=s=h=t*this.scale,t=this.sliderHeight-e),r="65%";o={ease:this.animation,delay:this.delay},o[this.size]=t,this.bg.style.opacity="1",punchgs.TweenLite.to(this.bg,this.timing,o);var o={ease:this.animation,delay:this.delay};o[this.size]=s,punchgs.TweenLite.to(this.before,this.timing,o),o={ease:this.animation,delay:this.delay},o[this.size]=t,this.after.style.opacity="1",punchgs.TweenLite.to(this.after,this.timing,o),this.revealLine&&(o={ease:this.animation,delay:this.delay},o[this.axis]=e,punchgs.TweenLite.to(this.revealLine,.3,{autoAlpha:1,ease:punchgs.Power2.easeOut}),punchgs.TweenLite.to(this.revealLine,this.timing,o)),punchgs.TweenLite.to(this.revealBtn,.3,{autoAlpha:1,ease:punchgs.Power2.easeOut}),punchgs.TweenLite.to(this.revealBtn,this.timing,{delay:this.delay,left:r,top:h,ease:this.animation,onComplete:this.complete})},destroy:function(){punchgs.TweenLite.killTweensOf(this.bg),punchgs.TweenLite.killTweensOf(this.after),punchgs.TweenLite.killTweensOf(this.before),punchgs.TweenLite.killTweensOf(this.revealBtn),this.revealLine&&punchgs.TweenLite.killTweensOf(this.revealLine),p.removeData(this.slide[0],"rs-addon-beforeafter",this);for(var e in this)this.hasOwnProperty(e)&&delete this[e]}},typeof jQuery<"u"&&jQuery(".rev_slider").each(function(){var e="",s=jQuery(this),t=s[0].id,r=s.find("li[data-beforeafter]");if(r.length){if(r.each(function(){var o=jQuery(this),n=o.attr("data-index"),i=JSON.parse(o.attr("data-beforeafter"));if(o.data("beforeafter-options",i),/html5|youtube|vimeo/.test(i.bgType)){var a='<div class="tp-caption tp-resizeme fullscreenvideo disabled_lc tp-videolayer" id="slide-'+o.attr("data-index").replace("rs-","")+`-layer-0" data-type="video" data-x="['0','0','0','0']" data-y="['0','0','0','0']" data-beforeafter="after" data-basealign="slide" data-responsive_offset="on" data-exitfullscreenonpause="off" data-videocontrols="none" data-videowidth="['100%','100%','100%','100%']" data-videoheight="['100%','100%','100%','100%']" data-videopreload="auto" data-paddingtop="[0,0,0,0]" data-paddingright="[0,0,0,0]" data-paddingbottom="[0,0,0,0]" data-paddingleft="[0,0,0,0]" data-autoplay="on" data-frames='`+('[{"delay":"'+(i.carousel?"10":"bytrigger")+'","speed":0,"frame":"0","to":"o:1;","ease":"Linear.easeNone"},{"delay":"wait","speed":0,"frame":"999","ease":"Linear.easeNone"}]')+`' data-textAlign="['inherit','inherit','inherit','inherit']" data-videoloop="`+i.loopVideo+'" data-aspectratio="'+i.aspectRatio+'" ';switch(i.forceCover&&(a+='data-forceCover="1" '),i.dottedOverlay!=="none"&&(a+='data-dottedoverlay="'+i.dottedOverlay+'" '),i.nextSlideOnEnd&&(a+='data-nextslideatend="true" '),i.rewindOnStart&&(a+='data-forcerewind="on" '),i.videoStartAt&&(a+='data-videostartat="'+i.videoStartAt+'" '),i.videoEndAt&&(a+='data-videoendat="'+i.videoEndAt+'" '),i.bgType){case"html5":i.muteVideo&&(a+='data-volume="mute" ');var f=i.videoOgv,l=i.videoWebm,u=i.videoMpeg;if(u||f||l){a=a+('data-videoogv="'+f+'" ')+('data-videowebm="'+l+'" ')+('data-videomp4="'+u+'" ');var d=!0}break;case"youtube":(f=i.videoId)&&(a+='data-ytid="'+f+'" ',a+='data-videorate="'+i.videoSpeed+'" ',a+='data-videoattributes="'+i.youtubeArgs+'" ',a=i.muteVideo?a+'data-volume="mute" ':a+('data-volume="'+i.videoVolume+'" '),d=!0);break;case"vimeo":(f=i.videoId)&&(a+='data-vimeoid="'+f+'" ',a+='data-videoattributes="'+i.vimeoArgs+'" ',a=i.muteVideo?a+'data-volume="mute" ':a+('data-volume="'+i.videoVolume+'" '),d=!0)}d&&(o.find(".tp-caption").each(T),d=jQuery(a+'style="z-index: 5"><div class="rs-fullvideo-cover"></div></div>').insertAfter(o.find(".rev-slidebg")),o.data("beforeafter-video",d))}if(i.hasOwnProperty("bounceArrows")){o=.001*parseInt(i.bounceSpeed,10);var f=i.bounceArrows!=="initial"?"infinite":"1",l=parseInt(i.bounceAmount,10),u=i.bounceType==="repel",c=Math.round(.5*l);i.direction==="horizontal"?(d="X",a=["left","right"]):(d="Y",a=["top","bottom"]);for(var b=0;2>b;b++){var m=u?b===0?"-":"":b===0?"":"-",L=e,v=a[b],y=o.toFixed(2),x=i.bounceEasing;e=L+("@-webkit-keyframes "+t+"-"+n+"-rs-beforeafter-bounce-"+v+" {0%, 20%, 50%, 80%, 100% {-webkit-transform: translate"+d+"(0);transform: translate"+d+"(0)}40% {-webkit-transform: translate"+d+"("+l+"px);transform: translate"+d+"("+m+l+"px)}60% {-webkit-transform: translate"+d+"("+c+"px);transform: translate"+d+"("+m+c+"px)}}@keyframes "+t+"-"+n+"-rs-beforeafter-bounce-"+v+" {0%, 20%, 50%, 80%, 100% {-webkit-transform: translate"+d+"(0);transform: translate"+d+"(0)}40% {-webkit-transform: translate"+d+"("+l+"px);transform: translate"+d+"("+m+l+"px)}60% {-webkit-transform: translate"+d+"("+c+"px);transform: translate"+d+"("+m+c+"px)}}.rs-beforeafter-bounce-arrows .rs-"+t+"-"+n+"-rs-beforeafter-bounce-"+v+" {-webkit-animation: "+t+"-"+n+"-rs-beforeafter-bounce-"+v+" "+y+"s "+x+" "+f+";animation: "+t+"-"+n+"-rs-beforeafter-bounce-"+v+" "+y+"s "+x+" "+f+"}")}}if(i.hasOwnProperty("shiftOffset"))for(o=.001*parseInt(i.shiftTiming,10),d=.001*parseInt(i.shiftDelay,10),a=0;2>a;a++)f=i.shiftEasing,e+=".rs-beforeafter-shift-arrows .rs-"+t+"-"+n+"-rs-beforeafter-shift {-webkit-transition: all "+o+"s "+f+" "+d+"s;transition: all "+o+"s "+f+" "+d+"s}"}),e){var h=document.createElement("style");h.type="text/css",h.innerHTML=e,document.head.appendChild(h)}s.data("beforeafter-slides",r)}})})();