Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

animate text not working

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

See the Pen MKBLmE by redag555 (@redag555) on CodePen


Trying to animate line 3 (eventually all 3 lines) but can't get it to work - what am I missing?



Link to comment
Share on other sites

Hi and welcome to the GreenSock forums,


Thanks for the demo, it certainly helps. 



Problem 1: You weren't loading SplitText. We have a special CodePen-friendly version that you can use. I added it for you.


Problem 2: You need to target the words you want to animate with: mySplitText.words





For future reference: you can test any of our Club plugins by forking one of these examples: http://codepen.io/collection/qHasJ/ or grabbing the proper script url from the JS panel. Also, you will notice in the demo I gave back to you that I removed everything not related to the problem. It makes it a lot easier for us if the demos are as simple as possible.


Let us know if you need any more 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.