Linux hkvL61zh9Vexzf 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 Path : /www/wwwroot/fashion-kingdom.com/wp-content/plugins/kitify/assets/js/addons/ |
Current File : /www/wwwroot/fashion-kingdom.com/wp-content/plugins/kitify/assets/js/addons/progress-bar.js |
(function ($) { "use strict"; $(window).on('elementor/frontend/init', function () { window.elementorFrontend.hooks.addAction('frontend/element_ready/kitify-progress-bar.default', function ($scope) { var $target = $scope.find('.kitify-progress-bar'), percent = $target.data('percent'), type = $target.data('type'), deltaPercent = percent * 0.01; elementorFrontend.waypoint($target, function (direction) { var $this = $(this), animeObject = {charged: 0}, $statusBar = $('.kitify-progress-bar__status-bar', $this), $percent = $('.kitify-progress-bar__percent-value', $this), animeProgress, animePercent; if ('type-7' == type) { $statusBar.css({ 'height': percent + '%' }); } else { $statusBar.css({ 'width': percent + '%' }); } animePercent = anime({ targets: animeObject, charged: percent, round: 1, duration: 1000, easing: 'easeInOutQuad', update: function () { $percent.html(animeObject.charged); } }); }); }); }); }(jQuery));