Jump to content
GreenSock

PMWLTD

Tweening a javascript variable or array

Recommended Posts

I'm looking for something simple but I can't seem to find it in the docs. I found something with the old TweenMax but it's not relevant to GSAP 3

 

Basically, I have two arrays:

 

Arr1 = [0,0]

Arr2 = [50,40]

 

I would like to tween arr1 to arr2 over some duration. If that's impossible, then splitting it into individual gsap.to's with individual variables would work too.

 

I know this is pretty simple most likely but I'm pulling my hair out.

 

Thanks!

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.
×