TommyD Posted August 25, 2020 Share Posted August 25, 2020 Hello, I have a lifetime licence of GSAP. I have a project where I'm using GSAP 2.1.3 via NPM and I need to add the CustomEase plugin. I'm currently using the following import import "gsap" If I try to add import CustomEase from "gsap/CustomEase" it doesn't work so I guess it has to be installed separately. Is there a way to install it via NPM? If not I'd like to know where to download it. If I login and download the whole business package it downloads the version 3. Thank you, Thomas Link to comment Share on other sites More sharing options...
TommyD Posted August 25, 2020 Author Share Posted August 25, 2020 Ok I've found the old version to download. Is there a way to import the CustomEase as node package? Link to comment Share on other sites More sharing options...
ZachSaucier Posted August 25, 2020 Share Posted August 25, 2020 Hey Tommy. You should be able to add the ESM version of CustomEase (src -> bonus-files-for-npm-users in the GSAP 2 ZIP download) to the /gsap directory in your /npm-modules directory and then import it from there. import "gsap/CustomEase"; Link to comment Share on other sites More sharing options...
TommyD Posted August 25, 2020 Author Share Posted August 25, 2020 ok thank you Zach. Actually it's not the best to manually add files into the modules folders but I guess there's no npm package for CustomEase correct? In that case that's the only option. Link to comment Share on other sites More sharing options...
ZachSaucier Posted August 25, 2020 Share Posted August 25, 2020 9 minutes ago, TommyD said: there's no npm package for CustomEase correct? There is in GSAP 3. In GSAP 3 the ZIP download has an installable .tgz file. We're also working on serving GSAP 3 Club GreenSock files via a private npm registry (so you don't have to manually download and install from a ZIP) but that functionality isn't public yet. Have you looked at the import docs for v2? They cover how to do this sort of thing: https://greensock.com/docs/v2/NPMUsage Link to comment Share on other sites More sharing options...
TommyD Posted August 25, 2020 Author Share Posted August 25, 2020 yes but the problem is that the CustomEase file is not in the module folder. Anyway not a big deal, I'll add it manually as you suggested. Thanks! 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