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] SVG Transform animations are not applied if other SVG attributes are not also animated. #3081

Open
jdthorpe opened this issue Feb 23, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@jdthorpe
Copy link

jdthorpe commented Feb 23, 2025

1. Read the FAQs 👇

2. Describe the bug

SVG Transform animations are not applied unless certain other svg attributes are also animated (e.g. x or y).

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

In this sandbox, click on the animate button and notice that the fill and stroke animations (applied to the g and rect elements) are applied, but not the transform animations.

Then uncomment the // x: 0 lines in either the rect or g animations and notice that the transform animations are now applied.

4. Steps to reproduce

In this sandbox, click on the animate button and notice that the fill and stroke animations (applied to the g and rect elements) are applied, but not the transform animations.

Then uncomment the // x: 0 lines in either the rect or g animations and notice that the transform animations are now applied.

5. Expected behavior

Transforms should be animated even with other attributes are not animated.

6. Video or screenshots

See the CodeSandBox example above.

7. Environment details

Chrome and Edge for Mac

@jdthorpe jdthorpe added the bug Something isn't working label Feb 23, 2025
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