Jim Tim Posted August 21, 2023 Share Posted August 21, 2023 YOUMANI<font>S(space)ALL</font>. in this format the splitLine split the words line ["YOUMANI", s,All]. kindly update me See the Pen XWoJELp?editors=1010 by dajeme7838- (@dajeme7838-) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted August 21, 2023 Share Posted August 21, 2023 Wow the <font> and <u> tags are a blast from the past. They're both deprecated elements, I wouldn't suggest using them! https://developer.mozilla.org/en-US/docs/Web/HTML/Element/font That doesn't seem to be the issue though. It's just your text formatting. Without JS or splittext - See the Pen vYvEjeP?editors=1010 by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
Jim Tim Posted August 22, 2023 Author Share Posted August 22, 2023 @Cassie I understand the formatting is terrible. but it is made by the user dynamically. is there a way that splitLine will split the word based on white spaces not by the tags Link to comment Share on other sites More sharing options...
Cassie Posted August 22, 2023 Share Posted August 22, 2023 Sorry I'm still confused. Could you explain clearly what the current behaviour is and what the ideal behaviour is? See the Pen xxmGKqB?editors=1010 by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now