// Animate the drawing of the line and color change
TweenLite.to(circlePath, 1.5, {
"stroke-dashoffset": "-" + amount,
stroke: strokeEndColour,
});
// Set a counter to zero and animate to the input value
var counter = { var: 0 };
TweenLite.to(counter, 1.5, {
var: inputValue,
onUpdate: function () {
text.textContent = Math.ceil(counter.var) + "%";
},
ease: Circ.easeOut,
});