feat(ui): introduce number-flow animation library #1324
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I found this pretty amazing library for animating numbers, better than what we currently have.
https://number-flow.barvian.me/
The goal of this PR is to add the
number-flow
library and implement it in a few "Low Risk" areas. This will allow us to test how it impacts performance, and if it's performing well we can begin to implement it in other areas of the app.Right now it's implemented in the following places:
https://www.loom.com/share/96bdd9253e664385b19e96c526f85eb8?sid=97b5b3c7-23a4-43d9-b4da-a64c7f0da372
A few notes:
number
, strings wont work. For something like the big Wallet number, we would need to change the approach to our formatting.