balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

progresscircle.js (1779B)


      1 (function ($) { 
      2 
      3     "use strict";
      4     var progress_bar_circle = function ($scope, $) {
      5         function expertizeRoundCircle () {
      6             var rounderContainer = $('.piechart');
      7             if (rounderContainer.length) {
      8                 rounderContainer.each(function () {
      9                     var Self = $(this);
     10                     var value = Self.data('value');
     11                     var size = Self.parent().width();
     12                     var color = Self.data('fg-color');
     13         
     14                     Self.find('span').each(function () {
     15                         var expertCount = $(this);
     16                         expertCount.appear(function () {
     17                             expertCount.countTo({
     18                                 from: 1,
     19                                 to: value*100,
     20                                 speed: 3000
     21                             });
     22                         });
     23         
     24                     });
     25                     Self.appear(function () {					
     26                         Self.circleProgress({
     27                             value: value,
     28                             size: 120,
     29                             thickness: 4,
     30                             emptyFill: '#f5f0f0',
     31                             animation: {
     32                                 duration: 3000
     33                             },
     34                             fill: {
     35                                 color: color
     36                             }
     37                         });
     38                     });
     39                 });
     40             };
     41         }
     42         expertizeRoundCircle ();  
     43         
     44     }
     45     
     46 
     47     $(window).on('elementor/frontend/init', function () {
     48         elementorFrontend.hooks.addAction('frontend/element_ready/resox_about_two.default', progress_bar_circle);
     49     });
     50 })(window.jQuery);