Skip to content

Commit 54ba67c

Browse files
committed
index.html updated
1 parent 1b4f2c6 commit 54ba67c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,12 +462,20 @@ <h4>Follow Us</h4>
462462
const eased = 1 - Math.pow(1 - progress, 3);
463463

464464
const value = Math.floor(startVal + (eased * target));
465-
counter.textContent = value;
465+
if (counter.getAttribute("data-target") === "6000") {
466+
counter.textContent = "$" + value;
467+
} else {
468+
counter.textContent = value;
469+
}
466470

467471
if (progress < 1) {
468472
requestAnimationFrame(update);
469473
} else {
474+
if (counter.getAttribute("data-target") === "6000") {
475+
counter.textContent = "$" + target;
476+
} else {
470477
counter.textContent = target;
478+
}
471479
}
472480
}
473481

0 commit comments

Comments
 (0)