lukePeavey / SplitType

Javascript utility that splits text into lines, words, characters for animation
https://lukepeavey.github.io/SplitType/
545 stars 39 forks source link

Large words are not breaking #75

Open viveknath322 opened 7 months ago

viveknath322 commented 7 months ago

Hey,

I saw a text reveal with Split Type demo on codepen. One issue I found is words are not breaking if the last word of a sentence is larger. If you see in the demo(last example, that red one) the word "interactivity" is not breaking to next line .

https://codepen.io/designcourse/pen/vYQQKBW

How can I make it to the next line if word is bigger one?