Jump to content


Responsive Split Text animation

Moderator Tag

Recommended Posts



I'm using SplitText to add animation to lines of text based on the following example:


gsap.from(split.lines, {duration: 1, x: 200, autoAlpha: 0, ease: "power3", stagger: 0.05});


The animation is working as expected. However, as the text is split into separate tags it means that it's not responsive and leaves whitespace (which is shown in the gsap example).


Is there any way around this? 


Any help would be appreciated.



See the Pen pEKYVz by GreenSock (@GreenSock) on CodePen

Link to comment
Share on other sites

Hey Timmons and welcome to the GreenSock forums.


You just need to .revert() the split after the animation has completed. If you are having trouble implementing it then please make a minimal demo of the situation using something like CodePen and we'll do our best to help:


  • Like 2
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.