Jump to content
GreenSock

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

gsap3 crash

Recommended Posts

 

hi guys.

trying convert my current app with gsap3
Little crash here ? i can't track why? any ideas about what can do this ?

Don't know what hardness should be , but it look undefined.

Removed from projets:"

---TweenMax.js
---EasePack.js
---TimelineLite.js
Added gsap3
gsap.js 
EasePack.js

DdnyO2G8_o.png

Link to post
Share on other sites

Sorry to hear about the problem, @jonForum. It's super difficult to troubleshoot blind - can you provide a reduced test case? I really need to be able to see the problem in context. It kinda sounds like there's an issue with the target that you're feeding in (just a guess). 

  • Like 1
Link to post
Share on other sites

Ho ok finally found the coupable !

Bs7vozsZ_o.png

 

So it look like in gsap3 we cant any more pass array like this.
 

const arr = [20,15,10];
TweenLite.to(arr, 1, { 0: 30, ease: Power4.easeOut }); //ex: move arr[0] to=>30

dont know why worked in gsap2, and get core error in gsap3, but i will remove for now, and try found another ways.

  • Thanks 1
Link to post
Share on other sites

I think that's a bug @GreenSock should look at.

 

There's also a built in plugin for arrays, but it's creating the same error.

 

const arr = [20,15,10];

gsap.to(arr, {
  endArray: [30,15,10]
});

 

  • Like 3
Link to post
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.

×