Jump to content
Search Community

Is there an alternative to ExpoScaleEase.getRatio() method in gsap3?

Nghi
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Posted

I copied the markup/css/scripts into my own pen using these 2 libraries

https://cdnjs.cloudflare.com/ajax/libs/gsap/3.7.1/gsap.min.js
https://cdnjs.cloudflare.com/ajax/libs/gsap/3.7.1/EasePack.min.js

 

The getratio method doesn't seem to exist in gsap3. How would i get this demo to work... with the 3.7.1 library?


working tutorial demo.

See the Pen NyXBbV by GreenSock (@GreenSock) on CodePen.


My pen with new library.

See the Pen GRmMqeo by kneepham (@kneepham) on CodePen.

  • Solution
Posted

Have you checked the docs? The v3-converted demo is embedded in the docs: 

See the Pen qBBBxaL by GreenSock (@GreenSock) on CodePen.

 

There's no need for "getRatio()" anymore - the ease itself is the function. 

 

Does that answer your question? 

  • Like 1
Posted

Yes it does. Thank you so much for your time. I didnt relize there was the same tutorial in the new docs. I'll have a look into it.

  • Like 1

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