Comments (9)
Yeah I know. I'm looking into it. Just give me some time 😉
from react-text-transition.
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.
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.
I've tried aligning the text using the custom styling, style={{ textAlign: "centre !important" }}
but it didn't work too.
from react-text-transition.
Yeah I know. I'm looking into it. Just give me some time 😉
Justed wanted you to know! Thanks 😅
from react-text-transition.
Resolved in GH-11
from react-text-transition.
Thank you @WinterCore, it worked. Testing out some other things as well might report them too!
from react-text-transition.
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.
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)
- Style HOT 3
- Custom colors for each text on load HOT 1
- Choppy interaction when resizing window HOT 2
- centering text causes unwanted movement
- Background color CSS does not get applied HOT 2
- Initial situation is blocking the text HOT 1
- React 18 support? HOT 5
- How to render a space HOT 2
- Memory leak HOT 1
- Do v2 & v3 still support React 17?
- Is it possible to add images to each word?
- Module not found error ! Not working with nextjs 13 HOT 4
- Any idea on how to make the animation trigger on every state change?
- How to trigger animate on initial render?
- Not compatible with react-spring HOT 2
- "Ghost" Effect
- hydration issue with next HOT 1
- Letters appear "stuck" HOT 1
- XSS vulnerability in [email protected]
- doesn't work with react v18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-text-transition.