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.
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?
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
Hey!
The code can be found in "Salient/nectar/tinymce/shortcode-processing.php" .
Thanks
ThemeNectar Support Team
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!
My Bad, Please see "js/init.js" .
Thanks
ThemeNectar Support Team
Thank you, managed to work it out!