Hey @podii,
Adding a comma is easy because the number used in the counter element is the whole number and not the decimal number so by using mathematics we can add the comma to it’s actual position on the fly using JavaScript but your case is totally different. You’ve a decimal number and you want to animate both, since the counter element doesn’t support the decimals so it’s not achievable using only JavaScript.
We can understand this with a simple example, let’s say we have added the animation from 0 to 1001 so using mathematical calculations we can insert the comma right after 1 so it will become 1,001 but that’s not the case with the decimal numbers, you cannot calculate the position of the decimal, it could be 100.1 or 10.01 or 1.001 so it’s not basically achievable with custom JS only, this definetly requires the element level change to support the decimal numbers for the animation.
However we’ve a thread that covers adding the commas in details, if you’re interested then you can get help from this thread: https://theme.co/apex/forum/t/adding-commas-to-counter-numbers/46205/2
Please note that the code provided in the thread serves as a guide only and is to help you in getting started so implementing it and maintaining the code will be out of our support scope and for further maintenance for new possible versions of the theme that may cause the customization to break, you will need to hire a developer.development
Thank you for understanding!