top of page

Number Count Up Effect with Velo



Velo Code:


let startNum = 3200000;
let endNum = 3384000;
const duration = 3; // 1000 milliseconds


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

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

Enjoy!

bottom of page