Skip to content

fixes bugs in multiple renderings#4

Open
commandZeta wants to merge 1 commit intobitttttten:mainfrom
commandZeta:fix/counter-disappears
Open

fixes bugs in multiple renderings#4
commandZeta wants to merge 1 commit intobitttttten:mainfrom
commandZeta:fix/counter-disappears

Conversation

@commandZeta
Copy link
Copy Markdown
Contributor

I added a unique ID using the useId hook to fix an issue with multiple counter renders. One of them would occasionally disappear due to shared layoutId values in Framer Motion. Not sure if this is the best approach, open to suggestions.

counter

@bitttttten
Copy link
Copy Markdown
Owner

Hey @commandZeta ! This is cool, but when removing and adding text, does it not break the animation as we want to animate from the right to left?

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