Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove last comma ,00 in counter number and the way to custom comma #56

Closed
superantim opened this issue Feb 8, 2023 · 2 comments
Closed

Comments

@superantim
Copy link

https://codepen.io/superantim/pen/dyjEvXY
The number counter format like this 3,526,371,00. How to remove the end ,00 in number
and custom comma with no flip, only number have a flip css, something like that, pls i need help
image

@superantim superantim changed the title remove last comma in counter number and the way to custom comma remove last comma ,00 in counter number and the way to custom comma Feb 8, 2023
@superantim
Copy link
Author

superantim commented Feb 8, 2023

i tried playing around to find the way to remove ,00 at the last number, add data-transform="arrive(.2, 0.01) -> round -> number(',') -> replace(',00','') -> delay(rtl, 100, 150)"
has error Uncaught TypeError: Cannot assign to read only property '10' of string '3,526,371'
still has been stuck on custom the comma like image, pls anyone have solution, teach me
update: add data-transform="arrive(9, 0.01) -> round -> number('#', ',') -> replace('#00','') -> split -> delay(rtl, 100, 150)" to make comma ,00 gone
update2: trying to custom flip.js and it working
image

@bruffstar
Copy link

Hey @superantim how did you get the comma without the flip style?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants