CountUp.js
inorganik.github.io
CountUp.js
1–10 of 19 posts
Re: CountUp.js
#2Suggestion: allow passing in target as a DOMElement, rather than by id. That makes this more useful when template rendering in done off-DOM, or when IDs aren't used.
Re: CountUp.js
#3Nothing happens on mobile safari, looks like the button is not clickable?
Re: CountUp.js
#4If I have it count up to 1 in 20 seconds, it only takes 10 seconds?
It also doesn't seem to be linear, which is fine, but there should be some way to make it linear
And why just up? It'd be great if it could also count down.
Re: CountUp.js
#5You might also want to look at Odometer: http://github.hubspot.com/odometer/docs/welcome/
Re: CountUp.js
#6Suggestion: allow passing in target as a DOMElement, rather than by id. That makes this more useful when template rendering in done off-DOM, or when IDs aren't used.
If it's an object treat it as a dom node, if it's a string, run it through document.querySelector.
Re: CountUp.js
#7Looks 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.
Re: CountUp.js
#8Looks 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.
Indeed. 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
Re: CountUp.js
#9that easing
Re: CountUp.js
#10so easing... really does this need to be library