mattmatson
(Matt Matson)
October 27, 2018, 8:36am
1
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
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!
mattmatson
(Matt Matson)
October 27, 2018, 4:21pm
3
Thanks @ColibriMedia , I’ve got the odometer to work fine, it’s just the starting on scroll that I am stuck on.
Noah-R
(Noah Raskin)
October 27, 2018, 7:14pm
4
You mean “Start on scroll” actually or “Start when it’s in view”?
mattmatson
(Matt Matson)
January 11, 2019, 3:53pm
5
Start when it’s in view - please