Jump to content


make an array

Moderator Tag

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

Hello EvilScorpion, and Welcome to the GreenSock forum!


Your pen isn't working. It looks like your missing the TweeenMax.min.js and the SplitText plugin js. You can add those by clicking on the gear icon next to the JS panel.


Also could you please be more specific on exactly what you want? Any additional information will be highly appreciated!

  • Like 1
Link to comment
Share on other sites

No, I need more animation. not to create many variables 

split1 = new SplitText('.box1', {type:"words,chars"});
chars1 = split1.words;
split2 = new SplitText('.box2', {type:"words,chars"});
chars2 = split1.chars;
split3 = new SplitText('.box3', {type:"words,chars"});
chars3 = split1.words;

need like array box[0], box[1]...

Link to comment
Share on other sites

I'm stil confused.

I think at this point it would make more sense if you explained what the resulting animation should look like. Then we can suggest the best way to code it.


I don't know why in your code you have chars1 and chars3 both set to split1.words.

chars1 = split1.words;
chars3 = split1.words;

Maybe a typo? Regardless, the more descriptive you can be about your animation the better. 

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