question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text(" ") don't move. Because of that Text("a b") shows wrong transform animation.

See original GitHub issue
class test(Scene):
    def construct(self):
        text = Text("     ")
        text.to_corner(DOWN+LEFT)
        rect = SurroundingRectangle(text)
        self.add(text,rect)

Output

test

class test(Scene):
    def construct(self):
        text = Text("a     b")
        text1 = Text("123")
        text.to_corner(DOWN+LEFT)
        text1.to_edge(RIGHT+DOWN)
        rect = SurroundingRectangle(text)
        self.add(text,rect)
        self.play(Transform(text,text1))
        self.wait()

Output

ezgif-6-9891bd47c1c2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NavpreetDevpuricommented, May 2, 2020

change file manimlib/mobject/svg/svg_mobject.py from line 89

            elif element.tagName == 'path':
            # From this 
            '''
            result.append(self.path_string_to_mobject(
                element.getAttribute('d')
            ))
            '''
            # To this
            temp = element.getAttribute('d')
            if  temp != "":
                result.append(self.path_string_to_mobject(
                    temp
                ))
0reactions
kevkevinpalcommented, May 2, 2020

is there any action still needing to be done if not can we close this issue? @NavpreetDevpuri

Read more comments on GitHub >

github_iconTop Results From Across the Web

Great CSS Text Animation Examples You Can Use
Read on to discover handpicked text animations that show the creative side of a website. This article highlights pure CSS animated text effects ......
Read more >
Video: Animate text - Microsoft Support
Training: You can animate anything in three steps. Select what you want to animate, select an animation, and tweak it with an effect...
Read more >
Adding text to your project (Tutorial) - Adobe Support
Learn how to add and animate text in your Edge Animate composition. Explore how to create engaging effects such as dropping text, bounce, ......
Read more >
Text Layout controls in Motion - Apple Support
Crawl: Positions the text in a single string (within project safe zones) along the bottom of the project in preparation for a crawl...
Read more >
How to create fancy jumping text input labels - Bootcamp
A GIF animation showing the jumping label concept ... Once the rule is active, the text input label transforms its appearance.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found