Age-calculator with Vanilla JS and Tailwind CSS
Design comparison
Solution retrospective
Hey there all I hope you doing well, here's question
in my validateDate() function, it has some browser compatibility issue, like safari and firefox are providing me what I need, but chrome here is making auto adjustment, which I don't want
Well a lot to learn in js got pretty much messed with my code....... do share your views on the solution
Thanks for all your appreciation and valuable advice :)
Community feedback
- @symo-058Posted about 1 year ago
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);
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord