pqina / flip

⏳ The online version of the classic flip clock
https://pqina.nl/flip/
MIT License
874 stars 89 forks source link

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

Closed superantim closed 1 year ago

superantim commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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