PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/tiktechtok.org/wp-content/plugins/coming-soon/public/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/tiktechtok.org/wp-content/plugins/coming-soon/public/js/sp-animateeffects.min.js |
"use strict";var animationElementPosition=function(t){var e=jQuery(t),a=e.offset();return{top:a.top,right:a.left+e.outerWidth(),bottom:a.top+e.outerHeight(),left:a.left}};function check_animation_classes(t){var e=jQuery(window).scrollTop(),a=e+jQuery(window).outerHeight(),r=animationElementPosition(t).top;animationElementPosition(t).bottom;if(jQuery(t).children(".sp-animation-translatey-up").length){var n,s=50*(n=jQuery(t).children(".sp-animation-translatey-up").attr("data-vertical-scroll-speed")),i=-s;if(r+e<a)s*=.1,(s-=e*(.2*n))<=i&&(s=i);else if(r<a)(s-=.2*n*(a-r))<=i&&(s=i);jQuery(t).children(".sp-animation-translatey-up").css("--translateY",s+"px")," translateY(var(--translateY))"}if(jQuery(t).children(".sp-animation-translatey-down").length){var o,l=50*(o=jQuery(t).children(".sp-animation-translatey-down").attr("data-vertical-scroll-speed")),c=l;if(l=-l,r+e<a)l*=.1,c<=(l+=e*(.2*o))&&(l=c);else if(r<a)c<=(l+=.2*o*(a-r))&&(l=c);jQuery(t).children(".sp-animation-translatey-down").css("--translateY",l+"px")," translateY(var(--translateY))"}if(jQuery(t).children(".sp-animation-translatex-left").length){var d,p=50*(d=jQuery(t).children(".sp-animation-translatex-left").attr("data-horizotal-scroll-speed")),u=-p;if(r+e<a)p*=.1,(p-=e*(.125*d))<=u&&(p=u);else if(r<a)(p-=.125*d*(a-r))<=u&&(p=u);jQuery(t).children(".sp-animation-translatex-left").css("--translateX",p+"px")," translateX(var(--translateX))"}if(jQuery(t).children(".sp-animation-translatex-right").length){var h,m=50*(h=jQuery(t).children(".sp-animation-translatex-right").attr("data-horizotal-scroll-speed")),y=m;if(m=-m,r+e<a)m*=.1,y<=(m+=e*(.125*h))&&(m=y);else if(r<a)y<=(m+=.125*h*(a-r))&&(m=y);jQuery(t).children(".sp-animation-translatex-right").css("--translateX",m+"px")," translateX(var(--translateX))"}if(jQuery(t).children(".sp-animation-transparency-fadein").length){var f,j=.1*(10-(f=jQuery(t).children(".sp-animation-transparency-fadein").attr("data-transparency-scroll-speed")));if(r<a)1<=(j+=125e-6*f*(a-r))&&(j=1);jQuery(t).children(".sp-animation-transparency-fadein").css("opacity",j)}if(jQuery(t).children(".sp-animation-transparency-fadeout").length){var Q,v=1,g=.1*(10-(Q=jQuery(t).children(".sp-animation-transparency-fadeout").attr("data-transparency-scroll-speed")));if(r<a)(v-=125e-6*Q*(a-r))<=g&&(v=g);jQuery(t).children(".sp-animation-transparency-fadeout").css("opacity",v)}if(jQuery(t).children(".sp-animation-blur-fadein").length){var w=1*jQuery(t).children(".sp-animation-blur-fadein").attr("data-blur-scroll-speed");if(r<a)(w-=.0014*w*(a-r))<=0&&(w=0);jQuery(t).children(".sp-animation-blur-fadein").css("--blur",w+"px")}if(jQuery(t).children(".sp-animation-blur-fadeout").length){var M=0,X=1*jQuery(t).children(".sp-animation-blur-fadeout").attr("data-blur-scroll-speed");if(r<a)(M+=.0014*X*(a-r))<=X&&(M=X);jQuery(t).children(".sp-animation-blur-fadeout").css("--blur",M+"px")}if(jQuery(t).children(".sp-animation-rotate-toleft").length){var Y,_=50*(Y=jQuery(t).children(".sp-animation-rotate-toleft").attr("data-rotate-scroll-speed")),k=-_;if(r<a)(_-=.12*Y*(a-r))<=k&&(_=k);jQuery(t).children(".sp-animation-rotate-toleft").css("--rotateZ",_+"deg")," rotateZ(var(--rotateZ))"}if(jQuery(t).children(".sp-animation-rotate-toright").length){var x,q=50*(x=jQuery(t).children(".sp-animation-rotate-toright").attr("data-rotate-scroll-speed")),b=q;if(q=-q,r<a)b<=(q+=.12*x*(a-r))&&(q=b);jQuery(t).children(".sp-animation-rotate-toright").css("--rotateZ",q+"deg")," rotateZ(var(--rotateZ))"}if(jQuery(t).children(".sp-animation-scale-up").length){var Z,H=1,O=1+.1*(Z=jQuery(t).children(".sp-animation-scale-up").attr("data-scale-scroll-speed"));if(r<a)O<=(H+=14e-5*Z*(a-r))&&(H=O);jQuery(t).children(".sp-animation-scale-up").css("--scale",H)," scale(var(--scale))"}if(jQuery(t).children(".sp-animation-scale-down").length){var E,A=1+.1*(E=jQuery(t).children(".sp-animation-scale-down").attr("data-scale-scroll-speed"));if(r<a)(A-=14e-5*E*(a-r))<=1&&(A=1);jQuery(t).children(".sp-animation-scale-down").css("--scale",A)," scale(var(--scale))"}}function check_mouse_animation_classes(t,e){if(jQuery(t).children(".sp-mouse-track-opposite").length){var a,r=window.innerWidth/2,n=window.innerHeight/2,s=Math.sqrt(Math.pow(r,2)+Math.pow(n,2)),i=e.clientX,o=e.clientY,l=0<=i-r?-1:1,c=0<=o-n?-1:1,d=(Math.sqrt(Math.pow(i-r,2)+Math.pow(o-n,2)),Math.sqrt(Math.pow(i-r,2))/r*50),p=Math.sqrt(Math.pow(o-n,2))/n*50,u=l*d*(a=jQuery(t).children(".sp-mouse-track-opposite").attr("data-mouse-track-speed")),h=c*p*a,m=jQuery(t).children(".sp-mouse-track-opposite").get(0).style.transform;jQuery(t).children(".sp-mouse-track-opposite").get(0).style.transform?(-1==m.indexOf("translateX")&&(m+=" translateX(var(--translateX)) "),-1==m.indexOf("translateY")&&(m+=" translateY(var(--translateY)) ")):m=" translateX(var(--translateX)) translateY(var(--translateY)) ",jQuery(t).children(".sp-mouse-track-opposite").css("--translateX","".concat(u,"px")),jQuery(t).children(".sp-mouse-track-opposite").css("--translateY","".concat(h,"px")),jQuery(t).children(".sp-mouse-track-opposite").css("transform",m)}if(jQuery(t).children(".sp-mouse-track-direct").length){var y,f=window.innerWidth/2,j=window.innerHeight/2,Q=Math.sqrt(Math.pow(f,2)+Math.pow(j,2)),v=e.clientX,g=e.clientY,w=0<=v-f?1:-1,M=0<=g-j?1:-1,X=(Math.sqrt(Math.pow(v-f,2)+Math.pow(g-j,2)),Math.sqrt(Math.pow(v-f,2))/f*50),Y=Math.sqrt(Math.pow(g-j,2))/j*50,_=w*X*(y=jQuery(t).children(".sp-mouse-track-direct").attr("data-mouse-track-speed")),k=M*Y*y,x=jQuery(t).children(".sp-mouse-track-direct").get(0).style.transform;jQuery(t).children(".sp-mouse-track-direct").get(0).style.transform?(-1==x.indexOf("translateX")&&(x+=" translateX(var(--translateX)) "),-1==x.indexOf("translateY")&&(x+=" translateY(var(--translateY)) ")):x=" translateX(var(--translateX)) translateY(var(--translateY)) ",jQuery(t).children(".sp-mouse-track-direct").css("--translateX","".concat(_,"px")),jQuery(t).children(".sp-mouse-track-direct").css("--translateY","".concat(k,"px")),jQuery(t).children(".sp-mouse-track-direct").css("transform",x)}if(jQuery(t).children(".sp-mouse3d-opposite").length){var q,b=window.innerWidth/2,Z=window.innerHeight/2,H=Math.sqrt(Math.pow(b,2)+Math.pow(Z,2)),O=e.clientX,E=e.clientY,A=0<=O-b?-1:1,P=0<=E-Z?1:-1,S=(Math.sqrt(Math.pow(O-b,2)+Math.pow(E-Z,2)),Math.sqrt(Math.pow(O-b,2))/b*5),W=Math.sqrt(Math.pow(E-Z,2))/Z*5,T=A*S*(q=jQuery(t).children(".sp-mouse3d-opposite").attr("data-mouse3d-track-speed")),z=P*W*q,C=jQuery(t).children(".sp-mouse3d-opposite").get(0).style.transform;jQuery(t).children(".sp-mouse3d-opposite").get(0).style.transform?(-1==C.indexOf("rotateX")&&(C+=" rotateX(var(--rotateX)) "),-1==C.indexOf("rotateY")&&(C+=" rotateY(var(--rotateY)) ")):C=" rotateX(var(--rotateX)) rotateY(var(--rotateY)) ",jQuery(t).children(".sp-mouse3d-opposite").css("--rotateX","".concat(z,"deg")),jQuery(t).children(".sp-mouse3d-opposite").css("--rotateY","".concat(T,"deg")),jQuery(t).children(".sp-mouse3d-opposite").css("transform",C)}if(jQuery(t).children(".sp-mouse3d-direct").length){var L,B=window.innerWidth/2,D=window.innerHeight/2,F=Math.sqrt(Math.pow(B,2)+Math.pow(D,2)),G=e.clientX,I=e.clientY,J=0<=G-B?-1:1,K=0<=I-D?1:-1,N=(Math.sqrt(Math.pow(G-B,2)+Math.pow(I-D,2)),Math.sqrt(Math.pow(G-B,2))/B*5),R=Math.sqrt(Math.pow(I-D,2))/D*5,U=J*N*(L=jQuery(t).children(".sp-mouse3d-direct").attr("data-mouse3d-track-speed")),V=K*R*L,$=jQuery(t).children(".sp-mouse3d-direct").get(0).style.transform;jQuery(t).children(".sp-mouse3d-direct").get(0).style.transform?(-1==$.indexOf("rotateX")&&($+=" rotateX(var(--rotateX)) "),-1==$.indexOf("rotateY")&&($+=" rotateY(var(--rotateY)) ")):$=" rotateX(var(--rotateX)) rotateY(var(--rotateY)) ",jQuery(t).children(".sp-mouse3d-direct").css("--rotateX","".concat(U,"deg")),jQuery(t).children(".sp-mouse3d-direct").css("--rotateY","".concat(V,"deg")),jQuery(t).children(".sp-mouse3d-direct").css("transform",$)}}function animation_mouse_tranform(t){var e="";jQuery(t).children(".sp-animation-translatey-up").length&&(e+=" translateY(var(--translateY))"),jQuery(t).children(".sp-animation-translatey-down").length&&(e+=" translateY(var(--translateY))"),jQuery(t).children(".sp-animation-translatex-left").length&&(e+=" translateX(var(--translateX))"),jQuery(t).children(".sp-animation-translatex-right").length&&(e+=" translateX(var(--translateX))"),jQuery(t).children(".sp-animation-rotate-toleft").length&&(e+=" rotateZ(var(--rotateZ))"),jQuery(t).children(".sp-animation-rotate-toright").length&&(e+=" rotateZ(var(--rotateZ))"),jQuery(t).children(".sp-animation-scale-up").length&&(e+=" scale(var(--scale))"),jQuery(t).children(".sp-animation-scale-down").length&&(e+=" scale(var(--scale))"),jQuery(t).children(".sp-animation-effects").css("transform","".concat(e));var a="";jQuery(t).children(".sp-animation-transparency-fadein").length&&(a+="opacity"),jQuery(t).children(".sp-animation-transparency-fadeout").length&&(a+="opacity"),jQuery(t).children(".sp-animation-effects").css("will-change","".concat(a));var r="";return jQuery(t).children(".sp-animation-blur-fadein").length&&(r+=" blur(var(--blur))"),jQuery(t).children(".sp-animation-blur-fadeout").length&&(r+=" blur(var(--blur))"),jQuery(t).children(".sp-animation-effects").css("filter","".concat(r)),e}function animation_mouseover_tranform(t){var e="";return jQuery(t).children(".sp-mouse-track-opposite").length&&(e+=" scale(var(--scale))"),jQuery(t).children(".sp-mouse-track-direct").length,jQuery(t).children(".sp-mouse3d-direct").length,jQuery(t).children(".sp-mouse3d-opposite").length,e}function check_entrance_animation_classes(t){var e=jQuery(window).scrollTop()+jQuery(window).outerHeight(),a=animationElementPosition(t).top;animationElementPosition(t).bottom;if(a<e){var r=jQuery(t).attr("data-entrance-animation");jQuery(t).addClass("sp-animation-time"),jQuery(t).addClass(r)}}function entrance_animation_effects(){for(var t=document.querySelectorAll(".sp-entrace-animation"),e=0;e<t.length;e++){check_entrance_animation_classes(t[e])}}jQuery(document).ready(function(t){for(var e=document.querySelectorAll(".sp-animation-parent"),a=0;a<e.length;a++){check_animation_classes(e[a])}entrance_animation_effects(),jQuery(window).scroll(function(){jQuery(window).scrollTop(),jQuery(window).outerHeight();for(var t=document.querySelectorAll(".sp-animation-parent"),e=0;e<t.length;e++){check_animation_classes(t[e])}entrance_animation_effects()});for(var r=document.querySelectorAll(".sp-animation-parent"),n=0;n<r.length;n++)animation_mouse_tranform(r[n]);var s=document.querySelectorAll(".sp-mouse-parent");1<=s.length&&window.addEventListener("mousemove",function(t){for(var e=0;e<s.length;e++){check_mouse_animation_classes(s[e],t)}})});