Animated Number Count - Simply Copy and Paste the Code
Nu Media Nu Media
371 subscribers
12 views
0

 Published On Apr 10, 2024

All the codes in the video are placed below here, you can copy them for use when needed:
0:01 Animated number count with Commas or Periods
0:54 Copy code here:
num = Math.round(effect("Slider Control")("Slider"))
num + " " + "days"
--------
1:36 Switching the number to Decimal:
num = effect("Slider Control")("Slider").value.toFixed(1).replace(/\B(?=(\d{3})+(?!\d))/g, ",");
"$" + num
--------
2:00 Switching between Periods and Commas
2:15 Copy code here:
num = effect("Slider Control")("Slider").value.toFixed(2).replace('.',',').replace(/\B(?=(\d{3})+(?!\d))/g, ".");
num + " " + "VND"
--------
2:22 Add Zeros before Counter
2:34 Copy code here:
num = Math.round(effect("Slider Control")("Slider"));
x=5-num.toString().length;
"0000".substr(0,x) + num + " " + "likes";
--------
3:18 For Thousands Seperator, use this code:
num = effect("Slider Control")("Slider").value.toFixed().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
x=4-num.toString().length;
"000".substr(0,x) + num + " " + "likes";
--------
3:28 [Point Control] Run Numbers over 1 Million
4:39 Copy code here:
num = Math.round(effect("Point Control")("Point")[0]) + " ";
num.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
--------
Please like and share if you find it useful! If you don't understand, don't hesitate to leave me a comment.

show more

Share/Embed