Share Posted October 19, 2020 Hello, 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. Thanks See the Pen pEKYVz by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Share Posted October 19, 2020 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: 2 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