@symo-058
Posted
You can use the code below to animate your output. function animateCount(outputDays,ageDays) { let currentValue = 0; const interval = setInterval(() =>{ if (currentValue < ageDays) { currentValue++; outputDays.textContent = currentValue; } else { clearInterval(interval); } }, 25);