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

[BUG] attrX / attrY are not included in the typings for motion SVG elements #2044

Closed
jordan-burnett opened this issue Mar 23, 2023 · 1 comment · Fixed by #2092
Closed

[BUG] attrX / attrY are not included in the typings for motion SVG elements #2044

jordan-burnett opened this issue Mar 23, 2023 · 1 comment · Fixed by #2092
Labels
bug Something isn't working

Comments

@jordan-burnett
Copy link

jordan-burnett commented Mar 23, 2023

According to the docs, I can use attrX and attrY to animate the value of the x and y attributes of an SVG element directly:

SVG note: For SVG components, x and y attributes (as opposed to the transform style) can be set using attrX and attrY within animation props.

This appears to work as intended, and the code runs correctly however the typescript compiler throws an error. Example sandbox below:

image

Example sandbox:

https://codesandbox.io/s/ecstatic-bessie-38e7kj?file=/src/App.tsx

@jordan-burnett jordan-burnett added the bug Something isn't working label Mar 23, 2023
@TommySorensen
Copy link

Related: #2091

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants