%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/infra/betheme/betheme/functions/plugins/elementor/assets/
Upload File :
Create Path :
Current File : //home/infra/betheme/betheme/functions/plugins/elementor/assets/widget-counter-preview.js

(function ($) {

  $(window).on("elementor/frontend/init", function () {

      elementorFrontend.hooks.addAction("frontend/element_ready/mfn_counter.default", function ($scope, $) {

        $scope.find('.number').each(function () {

          var el = $(this);
          var duration = Math.floor((Math.random() * 1000) + 1000);
          var to = el.attr('data-to');

          $({
            property: 0
          }).animate({
            property: to
          }, {
            duration: duration,
            easing: 'linear',
            step: function() {
              el.text(Math.floor(this.property));
            },
            complete: function() {
              el.text(this.property);
            }
          });

        });

      });

  });

})(jQuery);

Zerion Mini Shell 1.0