jonForum Posted November 15, 2019 Share Posted November 15, 2019 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 Link to comment Share on other sites More sharing options...
GreenSock Posted November 15, 2019 Share Posted November 15, 2019 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). 1 Link to comment Share on other sites More sharing options...
jonForum Posted November 15, 2019 Author Share Posted November 15, 2019 Ho ok finally found the coupable ! 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. 1 Link to comment Share on other sites More sharing options...
OSUblake Posted November 15, 2019 Share Posted November 15, 2019 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] }); 3 Link to comment Share on other sites More sharing options...
GreenSock Posted November 16, 2019 Share Posted November 16, 2019 Good catch. That should be resolved in the latest beta file: https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/gsap-latest-beta.min.js You should be able to not only use endArray, but also animate individual indexes. ? 2 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