the answer for all question about Oxygen Builder plugin and WordPress

Does anyone have a solution for having multiple number counters that all start a

Does anyone have a solution for having multiple number counters that all start at different starting numbers? I cannot get this to work at all. I want one number to start at 0 and another to start at 2000 and it will only let one of these work.



Source

1 Comment
  1. Robert Chan says

    if you look at the code block you’ll see that the number counter is coded to start at 0 and count up to the number set in the text element.

    So i would modify this to pass another starting number to the js function with a data-attribute:
    add an attribute to the text element named something like data-starting-number with a value of 2000

    then read that value for a starting number by editing the code number JS:
    so I’d change line 11 from:
    var counterStart = 0 ;
    to
    var counterStart = number.data(‘starting-number’) | 0 ;
    which sets the counter to start at the value from data-starting-number or 0.

Leave A Reply

Your email address will not be published.