!function(a){a(function(){a(window).width()<=1024||b.init()});var b={showLogs:!1,round:1e3,init:function(){if(this._log("init"),this._inited)return this._log("Already Inited"),void(this._inited=!0);this._requestAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a,b){window.setTimeout(a,1e3/60)}}(),this._onScroll(!0)},_inited:!1,_properties:["x","y","z","rotateX","rotateY","rotateZ","scaleX","scaleY","scaleZ","scale"],_requestAnimationFrame:null,_log:function(a){this.showLogs&&console.log("Parallax Scroll / "+a)},_onScroll:function(b){var c=a(document).scrollTop(),d=a(window).height();this._log("onScroll "+c),a("[data-parallax]").each(a.proxy(function(e,f){var g=a(f),h=[],i=!1,j=g.data("style");void 0==j&&(j=g.attr("style")||"",g.data("style",j));var k,l=[g.data("parallax")];for(k=2;g.data("parallax"+k);k++)l.push(g.data("parallax-"+k));var m=l.length;for(k=0;ko&&("back"==g.data("sens")?(v=1,g.data("sens","go")):v++),x0&&v<=t){var k=c;"back"==g.data("sens")&&(k=d,d=-d,r=s,t=u),j=a.easing[r](null,v,k,d,t)}j=Math.ceil(j*this.round)/this.round,j==e&&f==d&&(j=d),h[b]||(h[b]=0),h[b]+=j,e!=h[b]&&(g.data("_"+b,h[b]),i=!0)}},this))}if(i){if(void 0!=h.z){var y=n.perspective;void 0==y&&(y=800);var z=g.parent();z.data("style")||z.data("style",z.attr("style")||""),z.attr("style","perspective:"+y+"px; -webkit-perspective:"+y+"px; "+z.data("style"))}void 0==h.scaleX&&(h.scaleX=1),void 0==h.scaleY&&(h.scaleY=1),void 0==h.scaleZ&&(h.scaleZ=1),void 0!=h.scale&&(h.scaleX*=h.scale,h.scaleY*=h.scale,h.scaleZ*=h.scale);var A="translate3d("+(h.x?h.x:0)+"px, "+(h.y?h.y:0)+"px, "+(h.z?h.z:0)+"px)",B="rotateX("+(h.rotateX?h.rotateX:0)+"deg) rotateY("+(h.rotateY?h.rotateY:0)+"deg) rotateZ("+(h.rotateZ?h.rotateZ:0)+"deg)",C="scaleX("+h.scaleX+") scaleY("+h.scaleY+") scaleZ("+h.scaleZ+")",D=A+" "+B+" "+C+";";this._log(D),g.attr("style","transform:"+D+" -webkit-transform:"+D+" "+j)}},this)),window.requestAnimationFrame?window.requestAnimationFrame(a.proxy(this._onScroll,this,!1)):this._requestAnimationFrame(a.proxy(this._onScroll,this,!1))}}}(jQuery);