Jump to content
GreenSock

Harold AO

With GSAP SplitText, how to animate the words of each line in the same time ?

Moderator Tag
Go to solution Solved by PointC,

Recommended Posts

Hi team.

I'm wondering how to animate the words of a line individually. E.g: "In this demo, we're" (first line) should start animating each word at the same time as the words of the 2nd line ("Gonna see how to make"), etc...

See the Pen zYmjJEy by haroldao (@haroldao) on CodePen

Link to comment
Share on other sites

  • Solution

You'd need to loop through each line and select the bottom/top .char in those lines and start all tweens at 0. Something like this.

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

 

Just FYI - you had an ease on the timeline itself, but timelines don't have eases. I moved that power4.inOut ease to the defaults for the timeline so it would be applied to each tween.

 

Hopefully that helps. Happy tweening and thanks for being a club member.

:)

 

 

  • Like 4
Link to comment
Share on other sites

2 hours ago, PointC said:

You'd need to loop through each line and select the bottom/top .char in those lines and start all tweens at 0. Something like this.

 

 

 

Just FYI - you had an ease on the timeline itself, but timelines don't have eases. I moved that power4.inOut ease to the defaults for the timeline so it would be applied to each tween.

 

Hopefully that helps. Happy tweening and thanks for being a club member.

:)

 

 

Thank you so muchhhhh🔥🔥😍

Link to comment
Share on other sites

4 minutes ago, GreenSock said:

Yep, @PointC is exactly right. 

 

Here's a slightly different way to structure it (not necessarily any better): 

 

 

ty ! I'll take a look !

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