@@ -20,20 +20,25 @@ $progress-bar-colors: (
2020}
2121
2222@mixin circular-progress-animation-breakpoints () {
23- $progress : 50 ;
23+ $progress : 0 ;
2424 $duration : 0 ;
25+ $delay : 1.8 ;
2526
26- @for $i from 1 through 10 {
27+ @for $i from 0 through 20 {
2728 .circular-progress-percentage-#{$progress } {
2829 animation : circular- loading- #{$progress } #{$duration } s linear forwards 1.8s ;
2930 }
31+ .circular-progress-percentage-#{$progress } -delay {
32+ animation-delay : #{$delay } s;
33+ }
3034 $progress : $progress + 5 ;
3135 $duration : $duration + 0.18 ;
36+ $delay : $duration + 1.8 ;
3237 }
3338}
3439
3540@mixin circular-progress-animation-keyframes ($progress , $degree , $keyframes ) {
36- @for $i from 1 through $keyframes {
41+ @for $i from 0 through $keyframes {
3742 @keyframes circular-loading- #{$progress } {
3843 0% {
3944 transform : rotate (0 );
@@ -122,7 +127,6 @@ $progress-bar-colors: (
122127 border-bottom-left-radius : 80px ;
123128 border-right : 0 ;
124129 transform-origin : center right ;
125- animation : circular- loading- 1 1.8s linear forwards ;
126130 }
127131 }
128132 .circular-progress-value {
@@ -144,8 +148,7 @@ $progress-bar-colors: (
144148 }
145149 @include circular-progress-bar-color ();
146150 @include circular-progress-animation-breakpoints ();
147- @include circular-progress-animation-keyframes ($progress : 50 , $degree : 0 , $keyframes : 10 );
148- @include circular-progress-animation-keyframes ($progress : 1 , $degree : 180 , $keyframes : 5 );
151+ @include circular-progress-animation-keyframes ($progress : 0 , $degree : 0 , $keyframes : 20 );
149152 }
150153
151154 @include media (' <=large' ) {
0 commit comments