OwlCyberSecurity - MANAGER
Edit File: animated-text.min.js
!function(t){"use strict";let e=function(e,n){let a=this,i=e,o=t(".lakit-animated-text__animated-text",i),u=t(".lakit-animated-text__animated-text-item",o),$=null,r=t.extend({effect:"fx1",delay:3e3,start:0,loop:""},n||{}),s=0,l=r.delay,c=r.start,d=e.hasClass("need-stop")||"yes"!==r.loop;a.avaliableEffects={fx1:{in:{duration:1e3,delay:function(t,e){return 75+100*e},easing:"easeOutElastic",elasticity:650,opacity:{value:[0,1],easing:"easeOutExpo"},translateY:["100%","0%"]},out:{duration:300,delay:function(t,e){return 40*e},easing:"easeInOutExpo",opacity:0,translateY:"-100%"}},fx2:{in:{duration:800,delay:function(t,e){return 50*e},easing:"easeOutElastic",opacity:{value:[0,1],easing:"easeOutExpo"},translateY:function(t,e){return e%2==0?["-80%","0%"]:["80%","0%"]}},out:{duration:300,delay:function(t,e){return 20*e},easing:"easeOutExpo",opacity:0,translateY:function(t,e){return e%2==0?"80%":"-80%"}}},fx3:{in:{duration:700,delay:function(t,e){return(t.parentNode.children.length-e-1)*80},easing:"easeOutElastic",opacity:{value:[0,1],easing:"easeOutExpo"},translateY:function(t,e){return e%2==0?["-80%","0%"]:["80%","0%"]},rotateZ:[90,0]},out:{duration:300,delay:function(t,e){return(t.parentNode.children.length-e-1)*50},easing:"easeOutExpo",opacity:0,translateY:function(t,e){return e%2==0?"80%":"-80%"},rotateZ:function(t,e){return e%2==0?-25:25}}},fx4:{in:{duration:700,delay:function(t,e){return 550+50*e},easing:"easeOutQuint",opacity:{value:[0,1],easing:"easeOutExpo"},translateY:["-150%","0%"],rotateY:[180,0]},out:{duration:200,delay:function(t,e){return 30*e},easing:"easeInQuint",opacity:{value:0,easing:"linear"},translateY:"100%",rotateY:-180}},fx5:{in:{duration:250,delay:function(t,e){return 200+25*e},easing:"easeOutCubic",opacity:{value:[0,1],easing:"easeOutExpo"},translateY:["-50%","0%"]},out:{duration:250,delay:function(t,e){return 25*e},easing:"easeOutCubic",opacity:0,translateY:"50%"}},fx6:{in:{duration:400,delay:function(t,e){return 50*e},easing:"easeOutSine",opacity:{value:[0,1],easing:"easeOutExpo"},rotateY:[-90,0]},out:{duration:200,delay:function(t,e){return 50*e},easing:"easeOutSine",opacity:0,rotateY:45}},fx7:{in:{duration:1e3,delay:function(t,e){return 100+30*e},easing:"easeOutElastic",opacity:{value:[0,1],easing:"easeOutExpo"},rotateZ:function(t,e){return[anime.random(20,40),0]}},out:{duration:300,opacity:{value:[1,0],easing:"easeOutExpo"}}},fx8:{in:{duration:400,delay:function(t,e){return 200+20*e},easing:"easeOutExpo",opacity:1,rotateY:[-90,0],translateY:["50%","0%"]},out:{duration:250,delay:function(t,e){return 20*e},easing:"easeOutExpo",opacity:0,rotateY:90}},fx9:{in:{duration:400,delay:function(t,e){return 200+30*e},easing:"easeOutExpo",opacity:1,rotateX:[90,0]},out:{duration:250,delay:function(t,e){return 30*e},easing:"easeOutExpo",opacity:0,rotateX:-90}},fx10:{in:{duration:400,delay:function(t,e){return 100+50*e},easing:"easeOutExpo",opacity:{value:[0,1],easing:"easeOutExpo"},rotateX:[110,0]},out:{duration:250,delay:function(t,e){return 50*e},easing:"easeOutExpo",opacity:0,rotateX:-110}},fx11:{in:{duration:function(t,e){return anime.random(800,1e3)},delay:function(t,e){return anime.random(100,300)},easing:"easeOutExpo",opacity:{value:[0,1],easing:"easeOutExpo"},translateY:["-150%","0%"],rotateZ:function(t,e){return[anime.random(-50,50),0]}},out:{duration:function(t,e){return anime.random(200,300)},delay:function(t,e){return anime.random(0,80)},easing:"easeInQuart",opacity:0,translateY:"50%",rotateZ:function(t,e){return anime.random(-50,50)}}},fx12:{in:{elasticity:!1,duration:1,delay:function(t,e){return 100*e+anime.random(50,100)},width:[0,function(e,n){return t(e).width()}]},out:{duration:1,delay:function(t,e){return(t.parentNode.children.length-e-1)*20},easing:"linear",width:{value:0}}}},a.textChange=function(){let e=u.eq(s),n;s<u.length-1?s++:s=0,n=u.eq(s),a.hideText(e,r.effect,null,function(o){e.toggleClass("visible");let c=l;$&&clearTimeout($),a.showText(n,r.effect,function(){n.toggleClass("active"),e.toggleClass("active"),n.toggleClass("visible"),t(document.body).trigger("lakit-animated-text",["start",i])},function(){if(d&&s===u.length-1){t(document.body).trigger("lakit-animated-text",["finish",i]);return}$=setTimeout(function(){a.textChange(),t(document.body).trigger("lakit-animated-text",["end",i])},c)})})},a.showText=function(e,n,i,o){let u=[];t("span.lakit-animated-span",e).each(function(){t(this).css({width:"auto",opacity:1,WebkitTransform:"",transform:""}),u.push(this)}),a.animateText(u,"in",n,i,o)},a.hideText=function(e,n,i,o){let u=[];t("span.lakit-animated-span",e).each(function(){u.push(this)}),a.animateText(u,"out",n,i,o)},a.animateText=function(t,e,n,i,o){let u=(a.avaliableEffects[n]||{})[e],$=null;u.targets=t,u.begin=i,u.complete=o,$=anime(u)},a.init=function(){let e=u.eq(s);setTimeout(function(){a.showText(e,r.effect,function(){t(document.body).trigger("lakit-animated-text",["start",i])},function(){$&&clearTimeout($),$=setTimeout(function(){a.textChange(),t(document.body).trigger("lakit-animated-text",["end",i])},l)})},c)}};t(window).on("elementor/frontend/init",function(){window.elementorFrontend.hooks.addAction("frontend/element_ready/lakit-animated-text.default",function(t){let n=t.find(".lakit-animated-text"),a=null,i={};n.length&&(i=n.data("settings"),(a=new e(n,i)).init())})})}(jQuery);