0

I am trying to create a percent circle, and the percent circle is always at 100% and not increasing like it should be. Is this chrome problem?

var count = $(('#count'));
              $({ Counter: 0 }).animate({ Counter: count.text() }, {
                duration: 5000,
                easing: 'linear',
                step: function () {
                  count.text(Math.ceil(this.Counter)+ "%");
                }
              });
              var s = Snap('#animated');
var progress = s.select('#progress');

progress.attr({strokeDasharray: '0, 251.2'});
Snap.animate(0,251.2, function( value ) {
progress.attr({ 'stroke-dasharray':value+',251.2'});
}, 5000);

https://jsfiddle.net/hn6mbqwv/

Maytham Fahmi
  • 31,138
  • 14
  • 118
  • 137
sanof
  • 349
  • 7
  • 18
  • 1
    What is the meaning of "prosent"? I assume it's a typo for something but I'm afraid I can't work it out. – Robert Longson Aug 29 '16 at 13:07
  • 1
    Your fiddle doesn't load the jQuery library (or the snap library btw) as it should like in [this answer](http://stackoverflow.com/a/29512804/1811992) (which you could have provided credit too) – web-tiki Aug 29 '16 at 13:29
  • Sorry I misstype. It was percent circle. – sanof Aug 29 '16 at 18:22

0 Answers0