motion
motion copied to clipboard
SVG elements (like motion.text) now update when given a MotionValue as children, matching HTML element behavior
Fixes the issue as described in: https://github.com/framer/motion/issues/2578
Feature was introduced in: https://github.com/framer/motion/pull/1877
Changelog:
- SVG elements (like
motion.text) now update when given aMotionValueas children, matching HTML element behavior.
@mattgperry The issue is now fixed. I'm happy to provide additional testing or troubleshooting if needed before merging.
Quick question about #1877: Was the decision intentional to implement handleChildMotionValue in HTMLVisualElement rather than DOMVisualElement?
Hi @mattgperry, what is the process of getting this PR merged? The pipeline succeeds and there are no conflicts with the main branch. Let me know if you are able to review and approve this. Or let me know if there is someone else I should reach out to. Thanks!
LGTM - I think SVG attrs/styles needs looking at specifically so I don't mind putting this out with the children thing. Thanks for the PR!