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

Custom SVG component #1866

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Custom SVG component #1866

wants to merge 3 commits into from

Conversation

mattgperry
Copy link
Collaborator

@mattgperry mattgperry commented Jan 3, 2023

Fixes #1177

SVG components are treated differently to HTML components. Currently motion(CustomComponent) assumes components are HTML elements. This PR allows a flag to be set when the component receiving the ref is an SVG: motion(CustomCircleComponent, { svg: true })

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.

[BUG] SVG viewBox animate not working when wrapping a component with motion()
1 participant