X7ROOT File Manager
Current Path:
/home/notabjze/pyirates.net/wp-content/themes/betheme/js/parallax
home
/
notabjze
/
pyirates.net
/
wp-content
/
themes
/
betheme
/
js
/
parallax
/
ðŸ“
..
📄
stellar.min.js
(12.28 KB)
📄
translate3d.js
(4.06 KB)
📄
translate3d.min.js
(1.45 KB)
Editing: 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)",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+")")})}(jQuery),function(t){"use strict";t.fn.mfnParallax=function(){var e,n,r,o=t(this),i=o.parent(),a=function(){var i,a,l,u=t(window).scrollTop();void 0!==n&&u>=n.min&&u<=n.max&&(a=(i=u-n.min)/n.height,l=r+500*a-i-r/n.height*500,mfnSetup.translate(o,e.left+"px",-Math.round(l)+"px"))},l=function(){r=t(window).height();var a;a=function(e){var n,r,o=e.get(0).clientWidth,i=e.get(0).clientHeight,a=e.parent().outerWidth(),l=e.parent().outerHeight(),u=t(window).height();u>l&&(l=u);var s=o/a;return i/s<l?(r=l,(n=o/(i/l))>o&&(n=o,r=i)):(n=a,r=i/s),[n,r,(a-n)/2,(l-r)/2]}(o),o.removeAttr("style").css({}),mfnSetup.translate(o,a[2]+"px",a[3]+"px"),e={width:a[0],height:a[1],left:a[2],top:a[3]};var l,u;l=i.offset().top-t(window).height(),u=i.offset().top+t(i).outerHeight(),n={min:l,max:u,height:u-l},i.css("background-image","unset")};setTimeout((function(){l(),a()}),50),t(window).on("scroll",a)},t(window).on("load resize",(function(){t(".mfn-parallax").length&&t(".mfn-parallax").each((function(){t(this).mfnParallax()}))}))}(jQuery);
Upload File
Create Folder