Jump to content
GreenSock

Separator

SplitText with MotionPath not splitting words

Recommended Posts

Why splitText is ignoring white space between words?

i tried reduceWhiteSpace: false, but it didn't work.

See the Pen MWQGEzR by Separator (@Separator) on CodePen

Link to comment
Share on other sites

You're placing each character onto the motionPath at exactly the same spot, and then staggering the start time of each animation. White space has absolutely nothing to do with it. See what I mean? 

 

Perhaps you should try using the native <textPath> element in SVG and then animate the startOffset with GSAP. 

https://css-tricks.com/snippets/svg/curved-text-along-path/

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath

  • Like 1
Link to comment
Share on other sites

Here's an oldie but a goodie.

 

See the Pen vRzmeO by PointC (@PointC) on CodePen

  • Like 3
Link to comment
Share on other sites

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.
×