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

feat: add number-ticker custom duration #380

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

snggh
Copy link
Contributor

@snggh snggh commented Oct 18, 2024

Adding custom duration in Number Ticker, when specific duration is set, it will use animate instead of useSpring to give control over the duration.

Other performance update:

  • Memoized number formatter and DOM update using useRef and useCallback
  • Handle timeout cleanup
  • Ensures the initial value is displayed immediately
Number-Ticker-Magic-UI.mp4

Copy link

vercel bot commented Oct 18, 2024

@snggh is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

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

Successfully merging this pull request may close these issues.

1 participant