bfintal / Counter-Up

Counter-Up is a lightweight jQuery plugin that counts up to a targeted number when the number becomes visible.
http://bfintal.github.io/Counter-Up/demo/demo.html
GNU General Public License v2.0
746 stars 722 forks source link

Use formatter callback function for replace " , " to " . " #52

Open shaddam opened 7 years ago

shaddam commented 7 years ago

Example:

jQuery('.counter').counterUp({ delay: 50, time: 3000, formatter: function (n) { return n.replace(/,/g, '.'); } });

senzlord commented 6 years ago

what about if i use data-plugin="counterup" ?

dnunes commented 6 years ago

That's a great idea and a very simple one to implement. Do you have any coding skills? Are you willing to send a Pull Request implementing this?