芝麻web文件管理V1.00
编辑当前文件:/home/soundframestudio/public_html/wp-content/themes/betheme/js/parallax/translate3d.min.js
var mfnSetup={translate:null};!function(t){"use strict";(function(){if(!window.getComputedStyle)return!1;var t,e=document.createElement("div");return document.body.insertBefore(e,null),void 0!==e.style.transform&&(e.style.transform="translateY(0px) translateX(-50%)",t=window.getComputedStyle(e).getPropertyValue("transform")),document.body.removeChild(e),null!=t&&t.length>0&&"none"!==t})()&&(mfnSetup.translate=function(t,e,n){t.css("transform","translateY("+n+") translateX(-50%)")})}(jQuery),function(t){"use strict";t.fn.mfnParallax=function(){var e,n,r,o=t(this),a=o.parent(),i=function(){var a,i,l,u=t(window).scrollTop();void 0!==n&&u>=n.min&&u<=n.max&&(i=(a=u-n.min)/n.height,l=r+500*i-a-r/n.height*500,mfnSetup.translate(o,e.left+"px",-Math.round(l)+"px"))},l=function(){r=t(window).height();var i;i=function(e){var n,r,o=e.get(0).clientWidth,a=e.get(0).clientHeight,i=e.parent().outerWidth(),l=e.parent().outerHeight(),u=t(window).height();u>l&&(l=u);var s=o/i;return a/s
o&&(n=o,r=a)):(n=i,r=a/s),[n,r,(i-n)/2,(l-r)/2]}(o),o.removeAttr("style").css({}),mfnSetup.translate(o,i[2]+"px",i[3]+"px"),e={width:i[0],height:i[1],left:i[2],top:i[3]};var l,u;l=a.offset().top-t(window).height(),u=a.offset().top+t(a).outerHeight(),n={min:l,max:u,height:u-l},a.css("background-image","unset")};setTimeout((function(){l(),i()}),50),t(window).on("scroll",i)},t(window).on("load resize",(function(){t(".mfn-parallax").length&&t(".mfn-parallax").each((function(){t(this).mfnParallax()}))}))}(jQuery);