Odometer on scroll position (JS Code help needed)

Hello,

I’ve recently added this element to my site:

The JS is working fine, but on page load and delayed by x seconds. I’m trying to figure out how to start the JS when the element is on screen or scrolled to, rather than on page load.

Current Setup
image

HTML

Any ideas?, help would be appriciated.

Thank you

Hi, this topic has been discussed here: Javascript Number Counter
However, not sure if it will be easy to recreate the odometer appearance.

Cheers!

Thanks @ColibriMedia, I’ve got the odometer to work fine, it’s just the starting on scroll that I am stuck on.

You mean “Start on scroll” actually or “Start when it’s in view”?

Start when it’s in view - please