motiondivision / motiondivision/motion
[BUG] Unable to animate svg text elements
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 33.7k
- Forks
- 1.4k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 14
Description
1. Read the FAQs 👇
Not included in the FAQ.
2. Describe the bug
Framer Motion is unable to animate svg text elements. It appears to push content into a children attribute instead of altering the contents of the text element.
3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
4. Steps to reproduce
Steps to reproduce the behavior:
- Load the sandbox
- Notice the count does not animate
- Inspect the text element in dev tools
- Notice it has a
childrenattribute that is updating
5. Expected behavior
The text should animate, just like in the doc'd demo https://codesandbox.io/p/sandbox/framer-motion-animate-content-bxx7lt?from-embed=
6. Video or screenshots
Just a static count, not much to show.
7. Environment details
Chrome 123.0.6312.46 / MacOS, reproable everywhere.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox reproduction and inspect how the SVG text element is rendered and animated in the Motion codebase. Confirm the reported children attribute behavior, then verify that the text content updates during animation as shown in the documented demo.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100