jQuery Counter Problem

Hi there,

Last week I managed to create counters with custom code.
The counters work fine. However, if you minimize your browser window, wait for 10 seconds and re-open the window again, the counter will be messed up.

Does anybody know how to fix this?

Please take a look at my read-only share link (wait a few seconds before counter begins): https://preview.webflow.com/preview/energiesprong-counters?utm_source=energiesprong-counters&preview=2f0a3c8f58654c7c340ea78e14832287
Live website (wait a few seconds before counter begins): http://energiesprong-counters.webflow.io/

Thanks in advance,


Your issue is related to Uncaught TypeError: Cannot read property 'shift' of null · Issue #10 · bfintal/Counter-Up · GitHub

Unfortunately the lib you are trying to use is unmaintained for 5 years already and no effort has been made to fix it. Perhaps look for another one?