Tagged: animated numbers
-
AuthorPosts
-
March 27, 2015 at 11:02 pm #419662
Right now we have the animated numbers on a site, and they count down, which gives the impression that you get less then the original… Is there a way to change the order that this counts?
March 30, 2015 at 4:25 pm #420568Hi Thomas!
It would take a lot of script changes. I tried finding a plugin that does this but didn’t have any luck.
It sounds like it would make a good feature request though, https://kriesi.at/support/enfold-feature-requests/. Consider filling one out and if it gets enough interest we may see something get added in a future update.
Regards,
ElliottMarch 30, 2015 at 4:42 pm #420585Thanks for the follow-up. So I found a solution and part of what the issue was, just in case anyone else runs into this.
So… What I was running into was that the number 15,000 was counting down making it look like you get less. I found that by removing the comma and just have the number as 15000 it counts up (the way I want). So it appears that if you add a comma, everything to the right of that comma counts down vs counting up… So technically you can choose between the number going up or down if you add a comma. :)
March 30, 2015 at 4:54 pm #420599Hi!
Glad you found a solution and thank you for posting it in the forum.
Enjoy the theme and feel free to come back with further questions and/or problems you have.
Best regards,
GünterMarch 27, 2018 at 11:03 pm #933927Hello amazing team!
Has there been any update regarding counting up instead of down with a comma? When you have 12,000,000 as a number, the commas make it far more legible than not to use commas and have it read 12000000.
Would love to have the animated numbers read up rather than down.
Best,
EmilioMarch 28, 2018 at 9:14 pm #934500Hi,
I think not yet actually.
If it is something that has been requested previously, we will check with our developers to see if there is an update to that.Thank you for bringing it up!
Best regards,
BasilisAugust 7, 2018 at 1:21 am #994159Hello Basilis/Support,
We have the same request. With large numbers (millions, billions, etc.), the number reads better with the commas.
However, the current programming doesn’t count up the entire number – seeing the commas as separate numbers.I’d love a solution for this; even if it is changing the code a bit on my side – if I can get some good direction to do so.
Any movement to adjust the THEME to support the request? Or does anyone have the solution that can be done by a developer such as myself – with some knowledge of programming/PHP/SQL, etc.?
Sincerely,
GregAugust 7, 2018 at 1:30 pm #994414Hi Greg,
Well, you can look in this file
enfold/config-templatebuilder/avia-shortcodes/numbers/numbers.php and see if you can come up with a solution for yourself.If you need further assistance please let us know.
Best regards,
VictoriaAugust 7, 2018 at 6:28 pm #994516Hello Victoria,
Thank you for directing me to the proper file to look at.
~ Greg
August 8, 2018 at 9:57 am #994779Hi Greg,
Thanks for the feedback, we should hopefully get this implemented in a future release of the theme.
Best regards,
RikardAugust 8, 2018 at 4:35 pm #995051Awesome news! Thank you, Rikard. You have the best themes I know of!
~ GregAugust 11, 2018 at 12:07 pm #996273Hi,
I had a look into the code and cannot reproduce the “count down” problem. The numbers are always incremented – with our without comma.
The only thing is that the comma or a point create 2 numbers which are handled seperatly.
You can check this:
In file config-templatebuilder\avia-shortcodes\numbers\numbers.js line 41 you find:
window.requestAnimationFrame(function(){ start_count(element, countTo, increment, newCount, fakeCountTo) });
Replace this with:
setTimeout(function(){ window.requestAnimationFrame(function(){ start_count(element, countTo, increment, newCount, fakeCountTo) }); }, 1000);
Clear browser cache and server cache (and save theme options when using Enfold performance settings) and check.
Best regards,
GünterAugust 23, 2018 at 12:13 am #1000547Hello Günter,
Well – your code changed things… maybe it is close. The commas are still creating the “process” to handle the numbers separately.
I am hoping to have the number count up from “1” to “4,000,000,000” with the commas in place.
Sincerely,
GregApril 10, 2019 at 3:01 pm #1089145Hey!
I added a solution for adding thousand seperators to the numbers (use Enfold 4.5.5)
Please replace
enfold\config-templatebuilder\avia-shortcodes\numbers\numbers.php
enfold\config-templatebuilder\avia-shortcodes\numbers\numbers.jswith
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_5_5/animated_numbers/numbers.php
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_5_5/animated_numbers/numbers.jsDo not forget to make a backup of the original files for a fallback and clear server and browser cache.
Check the options for the element.
Regards,
GünterApril 11, 2019 at 1:13 am #1089289Hello Günter,
Thank you for sharing your work!!
I’ll check it out asap.
Sincerely,
GregApril 11, 2019 at 1:04 pm #1089536Fantastic, just what I was looking for! The thousand separators should be included in the next update.
April 11, 2019 at 4:09 pm #1089603 -
AuthorPosts
- The topic ‘Is it possible to have the Animated Numbers count up?’ is closed to new replies.