D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
raptqcnr
/
www
/
wp-content
/
themes
/
woodmart
/
js
/
libs
/
Filename :
parallax.min.js
back
Copy
!function(u){var h=u(window),s=h.height();h.on("resize",function(){s=h.height()}),u.fn.parallax=function(a,r,n){var i,l,e=u(this);function t(){var o=h.scrollTop();e.hasClass("wd-parallax")&&e.each(function(){var n=u(this),t=n.offset().top;t+i(n)<o||o+s<t||e.attr("style","background-position: var(--wd-parallax-pos,"+a+" "+Math.round((l-o)*r)+"px) !important")})}e.each(function(){l=e.offset().top}),i=n?function(n){return n.outerHeight(!0)}:function(n){return n.height()},(arguments.length<1||null===a)&&(a="50%"),(arguments.length<2||null===r)&&(r=.1),(arguments.length<3||null===n)&&(n=!0),h.bind("scroll",t).on("resize",t),t()}}(jQuery);