Jump to content
Search Community

SplitText word splitting issue

PinkMeNow
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

PinkMeNow
Posted

Greetings everyone,

 

This forum has a great community and has always been helpful to me. So Im asking for help once more since I'm unable to solve this on my own.
I'm using SplitText but, on the first pageload, it splits words incorrectly (see the attached screenshot).

 

I already tried:

box-sizing: border-box;
white-space: wrap; 

 

Below is a link to a CodePen:

SplitText issue

 

 

Thanks,

 

V.

 

splittextshot.png

See the Pen ByaovXg by drol (@drol) on CodePen.

  • Solution
mvaneijgen
Posted

Maybe wait until all your fonts are loaded, before you split the text. Hope it helps and happy tweening! 

 

See the Pen xbxwMza?editors=0011 by mvaneijgen (@mvaneijgen) on CodePen.

  • Like 3
PinkMeNow
Posted

Thanks. I was (kind of) on that path. Tried to do a primitive solution by adding different types of pausing before script execution. Your solution is better.

  • Like 2

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...