Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #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?

    #420568

    Hi 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,
    Elliott

    #420585

    Thanks 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. :)

    #420599

    Hi!

    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ünter

    #933927

    Hello 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,
    Emilio

    #934500

    Hi,

    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,
    Basilis

    #994159

    Hello 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,
    Greg

    #994414

    Hi 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,
    Victoria

    #994516

    Hello Victoria,

    Thank you for directing me to the proper file to look at.

    ~ Greg

    #994779

    Hi Greg,

    Thanks for the feedback, we should hopefully get this implemented in a future release of the theme.

    Best regards,
    Rikard

    #995051

    Awesome news! Thank you, Rikard. You have the best themes I know of!
    ~ Greg

    #996273

    Hi,

    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ünter

    #1000547

    Hello 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,
    Greg

    #1089145

    Hey!

    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.js

    with

    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.js

    Do 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ünter

    #1089289

    Hello Günter,
    Thank you for sharing your work!!
    I’ll check it out asap.
    Sincerely,
    Greg

    #1089536

    Fantastic, just what I was looking for! The thousand separators should be included in the next update.

    #1089603

    Hi,

    Thanks for the feedback.

    It is in the pull requests for the next update. Hope Kriesi will merge.

    Enjoy the theme and have a nice day. Feel free to come back when you need further assistance.

    Best regards,
    Günter

Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘Is it possible to have the Animated Numbers count up?’ is closed to new replies.