bbcben Posted January 26, 2021 Share Posted January 26, 2021 Hi everyone! Splittext works great, however, when I make my viewport smaller (less wide), my site is responsive obviously, but the text transformed by splittext doesn't change anymore. For example: desktop version my text is aligned right & mobile version it's aligned left. How should we correctly handle this "issue" ? Link to comment Share on other sites More sharing options...
elegantseagulls Posted January 26, 2021 Share Posted January 26, 2021 Hi @bbcben, When your animation completes you can revert your split text back to its original form using yourSplitInstance.revert( ) ; https://greensock.com/docs/v3/Plugins/SplitText/revert() Hope this helps! 3 Link to comment Share on other sites More sharing options...
ZachSaucier Posted January 26, 2021 Share Posted January 26, 2021 If you need things to be split again then you can re-split after you .revert() the old splits. Welcome to the forums! Thanks for supporting GreenSock with a Business Green membership. 2 Link to comment Share on other sites More sharing options...
bbcben Posted January 27, 2021 Author Share Posted January 27, 2021 Thanks @elegantseagulls and @ZachSaucier - I'm definitely gonna try that! 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