DenverCoder1/readme-typing-svg

[FEAT] Add Scrolling Effect to large Text!

JaiS99 opened this issue · 2 comments

JaiS99 commented

Is your feature request related to a problem? Please describe.
When the Sentence is very long and the min-width is not set to a very long width to match, and the text is centre, it will cut off.

Describe the solution you'd like
Text should be able to overflow, sort of like a marquee scroll, that way one can retain the min-width to be smaller, without compromising the visibility of the text! So the text that has been rendered can be pushed back and new text is visible!

Describe alternatives you've considered
Making the width larger.
Additional context
Add any other context or screenshots about the feature request here.

I don't think solution is very feasible to implement because the width of the text can't be calculated by the SVG (if it could, I would just make the width dynamically calculated). Since the width of the text is unknown, it can't be determined when the marquee should be in effect unless the user also provides the width of text as a parameter, but this kind of defeats the purpose because if the user provides the width of the text then it could just enlarge the image to that width (which is what it currently does) and it would look better anyway.

JaiS99 commented

Then I don't think this is possible.