balmet.com

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

countbar.js (581B)


      1 // Progress Bar
      2 (function ($) { 
      3 
      4     "use strict";
      5 
      6     var count_bar = function ($scope, $) {
      7         
      8         if ($('.count-bar').length) {
      9             $('.count-bar').appear(function(){
     10                 var el = $(this);
     11                 var percent = el.data('percent');
     12                 $(el).css('width',percent).addClass('counted');
     13             },{accY: -50});
     14         
     15         }
     16     }
     17     
     18 
     19     $(window).on('elementor/frontend/init', function () {
     20         elementorFrontend.hooks.addAction('frontend/element_ready/resox_skill.default', count_bar);
     21     });
     22 })(window.jQuery);