trAvis - MANAGER
Edit File: plus-draw-svg.min.js
/*draw svg*/(function(a){'use strict';a.fn.pt_plus_animated_svg=function(){return this.each(function(){var b=a(this),d=b.data("id"),e=b.data("duration"),f=b.data("type"),g=b.data("stroke"),h=b.data("svg_fill_enable"),k=b.data("fill_color"),l=b.data("fillhover"),m=b.data("strokehover"),n=new Vivus(d,{type:f,duration:e,forceRender:!1,start:"inViewport",onReady:function(e){var f=e.el.childNodes,c=document.getElementById(d);if(""!=h&&"yes"==h&&(e.el.style.fillOpacity="0",e.el.style.transition="fill-opacity 0s"),c.style.opacity="1",""!=g)for(var n=0;n<f.length;n++){a(f[n]).attr("fill",k),a(f[n]).attr("stroke",g);var o=f[n],p=o.children;if(null!=p)for(var q=0;q<p.length;q++)a(p[q]).attr("fill",k),a(p[q]).attr("stroke",g)}if(""!=m||""!=l){var r="",s="";""!=m&&(s="stroke:"+m+" !important;"),""!=l&&(r="fill:"+l+" !important;"),e.el.insertAdjacentHTML("afterbegin","<style>svg *{-webkit-transition: all .3s;moz-transition: all .3s;-o-transition: all .3s;-ms-transition: all .3s;transition:all .3s;}svg.hoversvg *{"+s+r+" }</style>"),0<b.closest(".info-box-inner").length&&(b.closest(".info-box-inner").on("mouseover",function(){e.el.classList.add("hoversvg")}),b.closest(".info-box-inner").on("mouseout",function(){e.el.classList.remove("hoversvg")}))}}},function(a){"end"===a.getStatus()&&""!=h&&"yes"==h&&(a.el.style.fillOpacity="1",a.el.style.transition="fill-opacity 1s")})})},a(window).on("load",function(){setTimeout(function(){a(".pt_plus_row_bg_animated_svg").pt_plus_animated_svg(),a(".pt_plus_animated_svg,.ts-hover-draw-svg").pt_plus_animated_svg(),a("body").find(".pt_plus_row_bg_animated_svg").attr("style","stroke:black")},100)}),a(document).ready(function(){a(".plus-hover-draw-svg .svg_inner_block").on("mouseenter",function(){var b=a(this).parent();var c=b.data("id"),d=b.data("duration"),e=b.data("type");new Vivus(c,{type:e,duration:d,start:"inViewport"}).reset().play()}).on("mouseleave",function(){})})})(jQuery);