@bwprado When I add two counter, Non of them works
const startCounter = () => {
let count = 9550 //start time
const endTime = 10000 // end time
const interval = .005 // interval between counts ms
const counter = setInterval(() => {
$w(‘#text57’).text = count.toLocaleString() // update text
count === endTime && clearInterval(counter) // clears the interval when count is equal to endTime
count++ // increment count
}, interval)
}
$w.onReady(() => {
$w(‘#text57’).onViewportEnter(startCounter)
})
const startCounter = () => {
let count = 1900 //start time
const endTime = 200000 // end time
const interval = .005 // interval between counts ms
const counter = setInterval(() => {
$w(‘#text59’).text = count.toLocaleString() // update text
count === endTime && clearInterval(counter) // clears the interval when count is equal to endTime
count++ // increment count
}, interval)
}
$w.onReady(() => {
$w(‘#text59’).onViewportEnter(startCounter)
})