Jump to content
Search Community

CustomEase is not defined - But I imported TweenMax AND EasePack

Lasercode test
Moderator Tag

Go to solution Solved by Carl,

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

Thanks for the demo.

Glad to see you are experimenting with CustomEase.

 

In CodePen you need to use this version of CustomEase:

<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/CustomEase.min.js"></script>

Here is a fork of your demo: http://codepen.io/GreenSock/pen/vypXJV?editors=1010

 

CustomEase is available to anyone with a FREE GreenSock account (like yourself)

When you are logged in just visit your dashboard to grab a version of GSAP w/ bonus content or download GSAP from the homepage.

CustomEase will be in the /easing folder.

 

Keep in mind EasePack is inside of TweenMax (no need to load both) but CustomEase is NOT in either of those and will need to be loaded separately.

 

Happy Tweening!

Link to comment
Share on other sites

Thanks for the quick reply. I used custom ease before though, and I knew that I don't need the EasePack. I wanted to try it in addition to see if it changes something, which it didnt.

If I remember and got you right, all I need to do is to use the tweenmax import link (for example the one from the download page)?
https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js
Because that's not working too (locally tested - not in codepen)
I also downloaded the bundle now and imported your tweenmax lib locally. No success. Still "CustomEase is not defined"..

Could you have a further look please as I think I did not make a mistake.. I think :)

Additionally.. Maybe it's a good idea to add a quick note about it here?
http://greensock.com/ease-visualizer

Thanks

Link to comment
Share on other sites

  • Solution

Sorry if I wasn't clear. It sounds like you still are not loading CustomEase.

 

If I remember and got you right, all I need to do is to use the tweenmax import link (for example the one from the download page)?

 

 

 

No, CustomEase is a separate file that you need to load in addition to TweenMax.

 

Please confirm that when working locally you are loading the script found here (minified or uncomressed):

 

 0f58f4c9e46745148d14ee4372fcb331.png

 

When I fixed your CodePen above I loaded the version that can only be used on CodePen.

 

Great idea about updating the visualizer with a note. We are already considering some ways to do that before CustomEase is officially released.

Right now its a bit of a secret still and we are working on a blog post and docs with lots of videos.

 

  • 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.
×
×
  • Create New...