File manager - Edit - /home/antilam/web/antilam.ru/public_html/wp-content/themes/woodmart/js/libs/parallax-scroll-bundle.min.js
Back
!function(t){t(function(){t(window).width()<=1024||!t("body").hasClass("elementor-editor-active")&&0===t(".wd-parallax-on-scroll").length&&0===t("[data-parallax]").length||a.init()});var a={showLogs:!1,round:1e3,init:function(){if(this._log("init"),this._inited)return this._log("Already Inited"),void(this._inited=!0);this._requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t,a){window.setTimeout(t,1e3/60)},this._onScroll(!0)},_inited:!1,_properties:["x","y","z","rotateX","rotateY","rotateZ","scaleX","scaleY","scaleZ","scale"],_requestAnimationFrame:null,_log:function(t){this.showLogs&&console.log("Parallax Scroll / "+t)},_onScroll:function(a){var e=t(document).scrollTop(),n=t(window).height();this._log("onScroll "+e),t("[data-parallax], .wd-parallax-on-scroll").each(t.proxy(function(r,s){var i,u,l=t(s),o=[],c=!1,h=l.data("style");if(null==h&&(h=l.attr("style")||"",l.data("style",h)),l.hasClass("wd-parallax-on-scroll")){var d=l.attr("class").split(" ");for(i=[[]],r=0;r<d.length;r++)if(d[r].indexOf("wd_scroll")>=0){var f=d[r].split("_");i[0][f[2]]=f[3]}}else i=[l.data("parallax")];for(u=2;l.data("parallax"+u);u++)i.push(l.data("parallax-"+u));var p=i.length;for(u=0;u<p;u++){var w=(f=i[u])["from-scroll"];null==w&&(w=Math.max(0,t(s).offset().top-n)),w|=0;var M=f.distance,m=f["to-scroll"];null==M&&null==m&&(M=n),M=Math.max(0|M,1);var g=f.easing,I=f["easing-return"];if(null!=g&&t.easing&&t.easing[g]||(g=null),null!=I&&t.easing&&t.easing[I]||(I=g),g){var x=f.duration;null==x&&(x=M),x=Math.max(0|x,1);var v=f["duration-return"];null==v&&(v=x),M=1;var y=l.data("current-time");null==y&&(y=0)}null==m&&(m=w+M),m|=0;var O=f.smoothness;null==O&&(O=30),O|=0,(a||0==O)&&(O=1),O|=0;var _=e;_=Math.max(_,w),_=Math.min(_,m),g&&(null==l.data("sens")&&l.data("sens","back"),_>w&&("back"==l.data("sens")?(y=1,l.data("sens","go")):y++),_<m&&("go"==l.data("sens")?(y=1,l.data("sens","back")):y++),a&&(y=x),l.data("current-time",y)),this._properties.map(t.proxy(function(a){var e=0,n=f[a];if(null!=n){"scale"==a||"scaleX"==a||"scaleY"==a||"scaleZ"==a?e=1:n|=0;var r=l.data("_"+a);null==r&&(r=e);var s=(_-w)/(m-w)*(n-e)+e,i=r+(s-r)/O;if(g&&y>0&&y<=x){var u=e;"back"==l.data("sens")&&(u=n,n=-n,g=I,x=v),i=t.easing[g](null,y,u,n,x)}(i=Math.ceil(i*this.round)/this.round)==r&&s==n&&(i=n),o[a]||(o[a]=0),o[a]+=i,r!=o[a]&&(l.data("_"+a,o[a]),c=!0)}},this))}if(c){if(null!=o.z){var Q=f.perspective;null==Q&&(Q=800);var b=l.parent();b.data("style")||b.data("style",b.attr("style")||""),b.attr("style","perspective:"+Q+"px; -webkit-perspective:"+Q+"px; "+b.data("style"))}null==o.scaleX&&(o.scaleX=1),null==o.scaleY&&(o.scaleY=1),null==o.scaleZ&&(o.scaleZ=1),null!=o.scale&&(o.scaleX*=o.scale,o.scaleY*=o.scale,o.scaleZ*=o.scale);var q="translate3d("+(o.x?o.x:0)+"px, "+(o.y?o.y:0)+"px, "+(o.z?o.z:0)+"px) rotateX("+(o.rotateX?o.rotateX:0)+"deg) rotateY("+(o.rotateY?o.rotateY:0)+"deg) rotateZ("+(o.rotateZ?o.rotateZ:0)+"deg) scaleX("+o.scaleX+") scaleY("+o.scaleY+") scaleZ("+o.scaleZ+");";this._log(q),l.attr("style","transform:"+q+" -webkit-transform:"+q+" "+h)}},this)),window.requestAnimationFrame?window.requestAnimationFrame(t.proxy(this._onScroll,this,!1)):this._requestAnimationFrame(t.proxy(this._onScroll,this,!1))}}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,a,e,n,r){return jQuery.easing[jQuery.easing.def](t,a,e,n,r)},easeInQuad:function(t,a,e,n,r){return n*(a/=r)*a+e},easeOutQuad:function(t,a,e,n,r){return-n*(a/=r)*(a-2)+e},easeInOutQuad:function(t,a,e,n,r){return(a/=r/2)<1?n/2*a*a+e:-n/2*(--a*(a-2)-1)+e},easeInCubic:function(t,a,e,n,r){return n*(a/=r)*a*a+e},easeOutCubic:function(t,a,e,n,r){return n*((a=a/r-1)*a*a+1)+e},easeInOutCubic:function(t,a,e,n,r){return(a/=r/2)<1?n/2*a*a*a+e:n/2*((a-=2)*a*a+2)+e},easeInQuart:function(t,a,e,n,r){return n*(a/=r)*a*a*a+e},easeOutQuart:function(t,a,e,n,r){return-n*((a=a/r-1)*a*a*a-1)+e},easeInOutQuart:function(t,a,e,n,r){return(a/=r/2)<1?n/2*a*a*a*a+e:-n/2*((a-=2)*a*a*a-2)+e},easeInQuint:function(t,a,e,n,r){return n*(a/=r)*a*a*a*a+e},easeOutQuint:function(t,a,e,n,r){return n*((a=a/r-1)*a*a*a*a+1)+e},easeInOutQuint:function(t,a,e,n,r){return(a/=r/2)<1?n/2*a*a*a*a*a+e:n/2*((a-=2)*a*a*a*a+2)+e},easeInSine:function(t,a,e,n,r){return-n*Math.cos(a/r*(Math.PI/2))+n+e},easeOutSine:function(t,a,e,n,r){return n*Math.sin(a/r*(Math.PI/2))+e},easeInOutSine:function(t,a,e,n,r){return-n/2*(Math.cos(Math.PI*a/r)-1)+e},easeInExpo:function(t,a,e,n,r){return 0==a?e:n*Math.pow(2,10*(a/r-1))+e},easeOutExpo:function(t,a,e,n,r){return a==r?e+n:n*(1-Math.pow(2,-10*a/r))+e},easeInOutExpo:function(t,a,e,n,r){return 0==a?e:a==r?e+n:(a/=r/2)<1?n/2*Math.pow(2,10*(a-1))+e:n/2*(2-Math.pow(2,-10*--a))+e},easeInCirc:function(t,a,e,n,r){return-n*(Math.sqrt(1-(a/=r)*a)-1)+e},easeOutCirc:function(t,a,e,n,r){return n*Math.sqrt(1-(a=a/r-1)*a)+e},easeInOutCirc:function(t,a,e,n,r){return(a/=r/2)<1?-n/2*(Math.sqrt(1-a*a)-1)+e:n/2*(Math.sqrt(1-(a-=2)*a)+1)+e},easeInElastic:function(t,a,e,n,r){var s=1.70158,i=0,u=n;return 0==a?e:1==(a/=r)?e+n:(i||(i=.3*r),u<Math.abs(n)?(u=n,s=i/4):s=i/(2*Math.PI)*Math.asin(n/u),-u*Math.pow(2,10*(a-=1))*Math.sin((a*r-s)*(2*Math.PI)/i)+e)},easeOutElastic:function(t,a,e,n,r){var s=1.70158,i=0,u=n;return 0==a?e:1==(a/=r)?e+n:(i||(i=.3*r),u<Math.abs(n)?(u=n,s=i/4):s=i/(2*Math.PI)*Math.asin(n/u),u*Math.pow(2,-10*a)*Math.sin((a*r-s)*(2*Math.PI)/i)+n+e)},easeInOutElastic:function(t,a,e,n,r){var s=1.70158,i=0,u=n;return 0==a?e:2==(a/=r/2)?e+n:(i||(i=r*(.3*1.5)),u<Math.abs(n)?(u=n,s=i/4):s=i/(2*Math.PI)*Math.asin(n/u),a<1?u*Math.pow(2,10*(a-=1))*Math.sin((a*r-s)*(2*Math.PI)/i)*-.5+e:u*Math.pow(2,-10*(a-=1))*Math.sin((a*r-s)*(2*Math.PI)/i)*.5+n+e)},easeInBack:function(t,a,e,n,r,s){return null==s&&(s=1.70158),n*(a/=r)*a*((s+1)*a-s)+e},easeOutBack:function(t,a,e,n,r,s){return null==s&&(s=1.70158),n*((a=a/r-1)*a*((s+1)*a+s)+1)+e},easeInOutBack:function(t,a,e,n,r,s){return null==s&&(s=1.70158),(a/=r/2)<1?n/2*(a*a*((1+(s*=1.525))*a-s))+e:n/2*((a-=2)*a*((1+(s*=1.525))*a+s)+2)+e},easeInBounce:function(t,a,e,n,r){return n-jQuery.easing.easeOutBounce(t,r-a,0,n,r)+e},easeOutBounce:function(t,a,e,n,r){return(a/=r)<1/2.75?n*(7.5625*a*a)+e:a<2/2.75?n*(7.5625*(a-=1.5/2.75)*a+.75)+e:a<2.5/2.75?n*(7.5625*(a-=2.25/2.75)*a+.9375)+e:n*(7.5625*(a-=2.625/2.75)*a+.984375)+e},easeInOutBounce:function(t,a,e,n,r){return a<r/2?.5*jQuery.easing.easeInBounce(t,2*a,0,n,r)+e:.5*jQuery.easing.easeOutBounce(t,2*a-r,0,n,r)+.5*n+e}});
| ver. 1.4 |
Github
|
.
| PHP 8.4.22 | Generation time: 0.1 |
proxy
|
phpinfo
|
Settings