Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #632268

    Hello,

    Here’s the scenario:

    I have a total project cost posted in my portfolio. supposedly, the total project cost will animate starting from zero up to the final project cost.

    example: total cost is 2,545,000. ( two million five hundred forty five thousand)
    Problem: the first digit which is “2” shows up first while the remaining digits are still counting up.

    I want all the digits to finish counting at the same time. How am i going to do this? otherwise, visitors may already have the idea of up to how much is the total amount. ( i just want to give them the thrill)

    Also, i want the counting speed to be a little bit slower.

    Thanks

    • This topic was modified 8 years, 7 months ago by shalenie.
    #632529

    does anybody out there?

    #633424

    Hi,

    Thank you for using Enfold. And we are very sorry for the delay.

    This is possible but you have to modify the avia_sc_animated_number function in the js > shortcodes.js file. Note that you won’t be able to override this function in a child theme so you have to do this modification every time you update the theme. Another workaround is to remove the comma separating the digits. Replace 2,545,000 with 2545000.

    If you want to slow it down, look for this code around line 2758 of the js > shortcodes.js:

    increment = Math.round( fakeCountTo * 32 / countTimer);
    

    Replace “32” with a lower number.

    Best regards,
    Ismael

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.