[BUG] MotionValues cannot be used in motion.g
element's transform attribute
#3082
Labels
bug
Something isn't working
motion.g
element's transform attribute
#3082
1. Read the FAQs 👇
2. Describe the bug
Unlike other SVG attributes (such as a circle's
cx
attribute) motion values cannot be used with a<motion.g>
element'stransform
attribute.3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
See this sandbox
4. Steps to reproduce
<g>
element is applied and propagated to the rect, but that therect
does not move.<g>
element that is the parent of the<rect>
element and notice that it's transform attribute is set to[object Object]
instead of the value of the motionValue ("transform(50 50)"
).5. Expected behavior
<motion.g>
elements should be able to use motionValues for all of their attributes, including thetransform
attribute.6. Video or screenshots
See the sandbox above
7. Environment details
Chrome and Edge for Mac
The text was updated successfully, but these errors were encountered: