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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Type bug with SVGTransformAttributes in AnimationSequence #2580

Open
joshuahhh opened this issue Mar 21, 2024 · 0 comments
Open

[BUG] Type bug with SVGTransformAttributes in AnimationSequence #2580

joshuahhh opened this issue Mar 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@joshuahhh
Copy link

1. Read the FAQs 馃憞

2. Describe the bug

If I use an SVG-specific attribute from SVGTransformAttributes (like attrX) in an AnimationSequence, the code seems to run correctly, but I get a type error.

See CodeSandbox below for an example. But in short, the problem comes from code like:

const [scope, animate] = useAnimate();
...
animate([
  [scope.current, { attrX: ...}, ...]
]);

There will be a type error at attrX.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

https://codesandbox.io/p/sandbox/framer-motion-animate-content-svg-text-forked-5nn53q

4. Steps to reproduce

See above CodeSandbox.

5. Expected behavior

There should not be a type error.

6. Video or screenshots

N/A

7. Environment details

N/A

@joshuahhh joshuahhh added the bug Something isn't working label Mar 21, 2024
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

No branches or pull requests

1 participant