Okay
  Public Ticket #288881
Milestone Animation Timer
Closed

Comments

  • Maximilian started the conversation

    hi there,

    is it possible to change the animation time for the counter of the milestones? where is the javascript responsible for counting up, so i can change something in the code? i was not able to find it yet.

    thanks for you response!

    cheers 

    max

  •  8,839
    Tahir replied

    Hey!

    The code can be found in "Salient/nectar/tinymce/shortcode-processing.php" . 

    Thanks


    ThemeNectar Support Team 

  • Maximilian replied

    Hi Tahir,

    thanks for your response. i could only find the following code in the shortcode-processing.php:

    ------------------------------------------------

    //milestonefunction nectar_milestone($atts, $content = null) {

    extract(shortcode_atts(array("subject" => '', 'symbol' => '', 'symbol_position' => 'after', 'number' => '0', 'color' => 'Default'), $atts));

    if(!empty($symbol)) {

    $symbol_markup = 'data-symbol="'.$symbol.'" data-symbol-pos="'.$symbol_position.'"';

    } else {

    $symbol_markup = null;

    }

    $number_markup = '

    '.$number.'

    ';

    $subject_markup = '

    '.$subject.'

    ';

    return '

    '.$number_markup.' '.$subject_markup.'

    ';

    }

    add_shortcode('milestone', 'nectar_milestone');

    ------------------------------------------------------

    but where can i find the animation details written in code, like how long should it take the number to count up (500ms, 1s, 2s etc)? shouldnt that be some kind of js or jquery somewhere in the theme?

    thanks!

  •  8,839
    Tahir replied

    My Bad, Please see "js/init.js"  .

    Thanks


    ThemeNectar Support Team 

  • Maximilian replied

    Thank you, managed to work it out!