We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b4f2c6 commit 54ba67cCopy full SHA for 54ba67c
1 file changed
index.html
@@ -462,12 +462,20 @@ <h4>Follow Us</h4>
462
const eased = 1 - Math.pow(1 - progress, 3);
463
464
const value = Math.floor(startVal + (eased * target));
465
- counter.textContent = value;
+ if (counter.getAttribute("data-target") === "6000") {
466
+ counter.textContent = "$" + value;
467
+ } else {
468
+ counter.textContent = value;
469
+ }
470
471
if (progress < 1) {
472
requestAnimationFrame(update);
473
} else {
474
475
+ counter.textContent = "$" + target;
476
477
counter.textContent = target;
478
479
}
480
481
0 commit comments