Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making two lines #6

Open
MichalNemec opened this issue Aug 15, 2022 · 6 comments
Open

Making two lines #6

MichalNemec opened this issue Aug 15, 2022 · 6 comments

Comments

@MichalNemec
Copy link

Hello,
Is it possible to make text two lines or more?
"test\n test" doesnt work properly with ScaleMorphingText

@SirusCodes
Copy link
Owner

Currently, it is not possible as it can only handle 1D transitions.
We can add 2D transitions by changing _calculateMove move and adding z-axis.

Things in my mind are how should we approach it.

  1. Only allow chars to move in the same line or allow them to move across lines
  2. How should be handled if a line is increased or decreased?

Also if you can add a PR that would be great.

@MichalNemec
Copy link
Author

I see that its more complicated.
Could you introduce another ScaleMorphingText which would be just fadein fadeout, where the two or more lines could be present. I am completely fine with fadein/fadeout animation. I was trying bunch of packages and only this fit my bill regarding functionality. It would also be nice to have some linebreak on its own, because line when its longer and fontsize i.e. 50, its cut off.

@SirusCodes
Copy link
Owner

Have you seen animated_text_kit? It might work for you.

@MichalNemec
Copy link
Author

yes, tried it, looks nice, but last item isnt staying put, no callback upon completing, oneliner/cutting text.

@SirusCodes
Copy link
Owner

FadeTransition should help you with fadein and fadeout animations.

Also for further conversation, I feel it's better to continue on my twitter or other platform as it is going a bit off topic

@MichalNemec
Copy link
Author

thanks, ill try to make it by myself somehow, when i have time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants