| Server IP : 5.129.245.98 / Your IP : 216.73.217.19 Web Server : Apache/2.4.66 (Debian) System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/greenshiftgsap/libs/gsap/ |
Upload File : |
if(null==document.getElementById("smooth-wrapper")){let t=document.createElement("div");for(t.id="smooth-content";document.body.firstChild;)t.appendChild(document.body.firstChild);document.body.appendChild(t);let e=document.createElement("div");for(e.id="smooth-wrapper";document.body.firstChild;)e.appendChild(document.body.firstChild);document.body.appendChild(e)}const GSPBSmoothScroller=()=>{let t=1.8,e="",o=document.getElementById("gspb-smooth-content");if(null==o&&(o=document.getElementById("smooth-content")),null!=o&&(o.getAttribute("data-ratio")&&(t=parseFloat(o.getAttribute("data-ratio"))),o.getAttribute("data-mobileratio")&&(e=parseFloat(o.getAttribute("data-mobileratio"))),o.getAttribute("data-fixclass"))){let r=document.getElementsByClassName(o.getAttribute("data-fixclass"));if(r.length>0)for(let l=0;l<r.length;l++){let s=r[l];document.body.appendChild(s)}}let a={smooth:t,normalizeScroll:!0,effects:!0,effectsPrefix:"gsmooth-",preventDefault:!0};if(e&&(a.smoothTouch=e),null!=document.querySelector(".gsmooth-skew")){let g=gsap.quickTo(".gsmooth-skew","skewY"),i=gsap.utils.clamp(-14,14);a.onUpdate=t=>{void 0!==t.scrollTrigger&&g(i(-(t.scrollTrigger.getVelocity()/50)))},a.onStop=()=>g(0)}let c=gsap.matchMedia(),n;c.add("(min-width: 800px)",()=>{n=ScrollSmoother.create(a);let t=document.getElementsByClassName("gsmooth-speed");if(t.length>0)for(let e=0;e<t.length;e++){let o=t[e],r=1,l=o.getAttribute("class").match(/gsmooth-speed-([0-9]+)/);null!=l&&l.length&&(r=parseInt(l[1])/100);let s="",g=o.getAttribute("class").match(/gsmooth-lag-([0-9]+)/);null!=g&&g.length&&(s=parseInt(g[1])/100),o.classList.contains("gsmooth-speed-auto")&&(r="auto");let i={speed:r};s&&(i.lag=s),n.effects(o,i)}let c=document.getElementsByClassName("gsmooth-chars");if(c.length>0)for(let h=0;h<c.length;h++){let m=c[h],u=.05,p=m.getAttribute("class").match(/gsmooth-chars-([0-9]+)/);null!=p&&p.length&&(u=parseInt(p[1])/100);new SplitText(m,{type:"chars"}).chars.forEach((t,e)=>{n.effects(t,{lag:e*u,speed:1})})}return()=>n.kill()}),null!=document.querySelector(".gsmooth-rotate-right")&&gsap.utils.toArray(".gsmooth-rotate-right").forEach((t,e)=>{let o=10,r=t.getAttribute("class").match(/gsmooth-rotate-([0-9]+)/);null!=r&&r.length&&(o=parseInt(r[1])),gsap.to(t,{rotation:o,scrollTrigger:{trigger:t,scrub:1,start:"top bottom",end:"bottom top"}})}),null!=document.querySelector(".gsmooth-rotate-left")&&gsap.utils.toArray(".gsmooth-rotate-left").forEach((t,e)=>{let o=10,r=t.getAttribute("class").match(/gsmooth-rotate-([0-9]+)/);null!=r&&r.length&&(o=parseInt(r[1])),gsap.to(t,{rotation:-o,scrollTrigger:{trigger:t,scrub:1,start:"top bottom",end:"bottom top"}})}),null!=document.querySelector(".gsmooth-reveal-top")&&gsap.utils.toArray(".gsmooth-reveal-top").forEach((t,e)=>{if(t.classList.contains("gsmooth-stagger")){let o={};o.each=.2,gsap.from(t.children,{y:40,autoAlpha:0,stagger:o,scrollTrigger:{trigger:t,start:"top 90%",toggleActions:"play pause resume reverse"}})}else gsap.from(t,{y:40,autoAlpha:0,scrollTrigger:{trigger:t,start:"top 90%",toggleActions:"play pause resume reverse"}})}),null!=document.querySelector(".gsmooth-move-top")&&gsap.utils.toArray(".gsmooth-move-top").forEach((t,e)=>{if(t.classList.contains("gsmooth-stagger")){let o={};o.each=.2,gsap.from(t.children,{y:.2*window.innerHeight,stagger:o,scrollTrigger:{trigger:t,start:"top 90%",toggleActions:"play pause resume reverse"}})}else gsap.from(t,{y:.2*window.innerHeight,scrollTrigger:{trigger:t,start:"top 90%",toggleActions:"play pause resume reverse"}})}),null!=document.querySelector(".gsmooth-words-mask")&&gsap.utils.toArray(".gsmooth-words-mask").forEach((t,e)=>{let o=new SplitText(t,{type:"words, lines"}),r={};r.each=.2;let l=o.words,s=o.lines;gsap.set(s,{overflow:"hidden"}),gsap.from(l,{yPercent:110,stagger:r,scrollTrigger:{trigger:t,start:"top 90%",toggleActions:"play pause resume reverse"}})}),null!=document.querySelector(".gsmooth-scale-up")&&gsap.utils.toArray(".gsmooth-scale-up").forEach((t,e)=>{if(gsap.set(t,{transformOrigin:"center center"}),t.classList.contains("gsmooth-stagger")){let o={};o.each=.2,gsap.from(t.children,{scale:.2,autoAlpha:0,stagger:o,scrollTrigger:{trigger:t,start:"top 90%",toggleActions:"play pause resume reverse"}})}else gsap.from(t,{scale:.2,autoAlpha:0,scrollTrigger:{trigger:t,start:"top 90%",toggleActions:"play pause resume reverse"}})}),null!=document.querySelector(".gsmooth-scale-down")&&gsap.utils.toArray(".gsmooth-scale-down").forEach((t,e)=>{if(gsap.set(t,{transformOrigin:"center center"}),t.classList.contains("gsmooth-stagger")){let o={};o.each=.2,gsap.from(t.children,{scale:1.8,autoAlpha:0,stagger:o,scrollTrigger:{trigger:t,start:"top 90%",toggleActions:"play pause resume reverse"}})}else gsap.from(t,{scale:1.8,autoAlpha:0,scrollTrigger:{trigger:t,start:"top 90%",toggleActions:"play pause resume reverse"}})})};GSPBSmoothScroller();