Skip to content

fix: fix hyper-text animation logic #597

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

Merged
merged 2 commits into from
Apr 17, 2025

Conversation

hannnnxiiii
Copy link
Contributor

The old animation logic may cause the playback time to be greater than the duration when the string is too long.

Assume that a string has a length of 50 and duration is set to 1000, then the callback function will be executed 500 times! On the one hand, it causes performance waste, and on the other hand, the callback function queue + execution time is greater than 2ms, resulting in the animation completion time being much greater than the duration.

Copy link

vercel bot commented Mar 15, 2025

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

A member of the Team first needs to authorize it.

@pedrogiroldo
Copy link

Thanks man, your code was pretty helpful!

@hannnnxiiii
Copy link
Contributor Author

Could you please approve my pull request? I'm looking forward to contributing to you all! ^^

@dillionverma
Copy link
Collaborator

@hannnnxiiii ty for this! Merging now

@dillionverma dillionverma merged commit e8677c1 into magicuidesign:main Apr 17, 2025
3 of 4 checks passed
@pedrogiroldo
Copy link

Thank god!!!!

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.

4 participants