Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1484852

    an animated number inside a column that has its own animation does not show (or does not show the way it is set) its animation.
    i got a column that “flip in X” with 2sec – the animated number inside has a timing of 20sec ( those values are seconds?)
    if i switch that column to “from right to left” (2sec) – the animated number is shown with an animation – but even here the 20sec are not the shown value.

    It almost looks as if the value of data-timer=“20000” is overwritten by the preceding animation of the column.

    #1484874

    I have just noticed that the 20s setting does not work outside of unanimated columns either.

    #1484964

    Hi,

    Thank you for the inquiry.

    This logic is designed for large numbers, like hundreds of thousands or millions. For smaller numbers (e.g. 10, 20, 100), it doesn’t have much effect because of how the increment is calculated in the enfold\config-templatebuilder\avia-shortcodes\numbers\numbers.js file:

    increment = Math.round( fakeCountTo * 32 / countTimer);
    if(increment == 0 || increment % 10 == 0) increment += 1;
    
    setTimeout( function(){ start_count(element, countTo, increment, current, fakeCountTo, number_format);}, start_timer);
    

    In your case, this is “increment = Math.round( 20 * 32 / 20000);” which results to 0 and defaults to increment += 1.

    Best regards,
    Ismael

    #1484975

    Your explanation makes sense to me.

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