DenverCoder1 / readme-typing-svg

⚡ Dynamically generated, customizable SVG that gives the appearance of typing and deleting text for use on your profile page, repositories, or website.
https://readme-typing-svg.demolab.com
MIT License
5.49k stars 854 forks source link

[FEAT] Add Scrolling Effect to large Text! #232

Open JaiS99 opened 1 year ago

JaiS99 commented 1 year ago

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.

DenverCoder1 commented 1 year ago

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 1 year ago

Then I don't think this is possible.