Skip to content

update CircularText from official page demo - It is not ready but I need a green light #219

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

Conversation

PedroMarianoAlmeida
Copy link
Contributor

Refactor for Performance Improvement

I refactored the component to improve performance by replacing useState with Framer Motion’s useMotionValue hook. This avoids unnecessary re-renders by preventing state updates on every frame.

If you find this approach effective, I’d be happy to apply the same optimization to the other CircularText components as well (I did the change on the Component that runs on the page, so if you run this branch and navigate to http://localhost:5173/text-animations/circular-text, it is possible to see the difference)

Before:

Screen.Recording.2025-05-23.at.11.30.54.PM.mov

After

Screen.Recording.2025-05-23.at.11.39.46.PM.mov

Copy link

vercel bot commented May 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
react-bits-ui ⬜️ Ignored (Inspect) Visit Preview May 24, 2025 2:50am

@DavidHDev
Copy link
Owner

Thanks for pointing it out, wasn't able to review on time but I quickly fixed it and and did some other minor tweaks to move things along faster, will close this one

@DavidHDev DavidHDev closed this Jun 9, 2025
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.

2 participants