4 ms·
Looks like the behaviour is limited to the first 2 decimals. You can see this if you put 6 random decimal numbers and set the duration to 20. I tried putting
by Gigablah 13y ago
Looks like the behaviour is limited to the first 2 decimals.
You can see this if you put 6 random decimal numbers and set the duration to 20.
I tried putting 10 decimals and it just shows a string of 0s after the 2nd decimal.
- lifthrasiir 13y agoIndeed. It should use the scaling factor of 10^6 (instead of 60). I have submitted a pull req: https://github.com/inorganik/countUp.js/pull/2 https://github.com/inorganik/countUp.js/pull/2