Animated Number Counter Code

Hi, I want to code a number counter where numbers will run to a designated count and then keep counting slowly one by one Making it show like it’s Still getting clients or something.
For example:- If someone lands on my page you’ll see the counter starting from 0 to 25000 in 5 seconds and it gradually keeps adding “25,001” “25,002” “25,003” and so on. Making it look like its still driving information while they are on the page.

I’m sharing my current code at the bottom, kindly do share if you have any ideas about what I’m referring to.

let startNum = 0 ;
let endNum = 25000 ;
const duration = 30 ; // 1000 milliseconds

$w . onReady ( function () {
setInterval (() => {
countUp ();
}, duration );
});

function countUp ( ) {
if ( startNum <= endNum ) {
$w ( ‘#numberText’ ). text = startNum . toLocaleString ();
startNum += 100 ;
}
}