GithubHelp home page GithubHelp logo

Comments (9)

WinterCore avatar WinterCore commented on June 14, 2024 1

Yeah I know. I'm looking into it. Just give me some time 😉

from react-text-transition.

WinterCore avatar WinterCore commented on June 14, 2024 1

Hey @raghav4.

Normally you would just have to add the inline prop. but that didn't work because the text was being wrapped on multiple lines (the width calculation was always wrong).
So I just had to add white-space: nowrap to the container.

Here's an updated codesandbox example.

Make sure to update to the latest version 1.1.0 and provide the inline prop.

Thanks for reporting this 😃.

from react-text-transition.

WinterCore avatar WinterCore commented on June 14, 2024 1

Have you tried removing the inline prop, the text should automatically break into multiple lines.

Sometimes changing props needs a full-page refresh in order for it to work. I'll work on fixing that soon.

from react-text-transition.

raghav4 avatar raghav4 commented on June 14, 2024

I've tried aligning the text using the custom styling, style={{ textAlign: "centre !important" }} but it didn't work too.

from react-text-transition.

raghav4 avatar raghav4 commented on June 14, 2024

Yeah I know. I'm looking into it. Just give me some time 😉

Justed wanted you to know! Thanks 😅

from react-text-transition.

WinterCore avatar WinterCore commented on June 14, 2024

Resolved in GH-11

from react-text-transition.

raghav4 avatar raghav4 commented on June 14, 2024

Thank you @WinterCore, it worked. Testing out some other things as well might report them too!

from react-text-transition.

WinterCore avatar WinterCore commented on June 14, 2024

Hey @raghav4.

is it possible to use this as a component to animate the <textarea>{'Animate The text Inside'}</textarea>

I'm not sure that's possible. Maybe you can try this other package react-text-loop

Sorry for interrupting again, it doesn't work for paragraphs. I tried it for lorem ipsum placeholder text, it should have given a responsive behaviour.

Have you tried removing the inline prop, the text should automatically break into multiple lines.

Let me know if you need anything else 😀.

from react-text-transition.

raghav4 avatar raghav4 commented on June 14, 2024

Have you tried removing the inline prop, the text should automatically break into multiple lines.

Sometimes changing props need a full-page refresh in order for it to work. I'll work on fixing that soon.

Yes, exactly as you're saying. Thank you! 😄

from react-text-transition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.