Jump to content
Search Community

Ease timing question

kristoffer test
Moderator Tag

Recommended Posts

... if I could only figure out how to use it 😧. I tried to use what was mentioned in this topic :

More specifically:

gsap.to(box, 2, { y: 400, ease: SplitEase(0.7, 0.2)});
const mySplitEase = new Ease(t => SplitEase(t, 0.7, 0.2, 2));
gsap.to(box, 2, { y: 400, ease: mySplitEase}); 

 

But it's not working. Any ideas? Maybe it's a GSAP 3.x compatibility issue? (I used this script tag  <script src="https://unpkg.com/split-ease" charset="utf-8"></script>)

 

I sent an email to the author @lunelson@gmail.com as well. 

 

Thanks,

Kristoffer

Link to comment
Share on other sites

Hey kristoffer. So long as you're passing in an ease function (takes a number between 0 and 1 and returns a number between 0 and 1) it should work. For example (though in reality GSAP already has a "bounce" ease so you shouldn't need the below in practice):

See the Pen RwWzXXB by GreenSock (@GreenSock) on CodePen

 

Can you please make a minimal demo of the issue?

  • Like 2
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...