Hello, I have such a part in my project, when I put a period and a comma between numbers like "1,000,000" or "4,000", the counter doesn't work. Can you help me?
See the Pen jOQZbzJ by sukruemanet (@sukruemanet) on CodePen
Hello Sukru,
This looks like it is mainly logic related.
If you were to console.log() out your values, you would see, that when you feed in a big value that is delimited by commas in your data-number attribute it will return as a string and not a number.
So you will want to find a way to convert that string into a tweenable number first and then later you will want to find a way to convert it back to a string delimited by commas.
In the example below I split t