Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
odell

Gsap Ease Outside Tween

Recommended Posts

Quick question, Is it possible to use a gsap ease outside of a tween or timeline? For example having gsap do all the heavy lifting and just state the ease in a vanilla request animation frame animation.

Share this post


Link to post
Share on other sites

Sure, you can get the function like:

const ease = gsap.parseEase("power3.in");

// then feed in a number between 0 and 1 that's the progress, and it'll spit back the eased value (typically between 0 and 1, but not always, like Elastic or Back)
let num = ease(0.5);

Is that what you're looking for? 

  • Like 4

Share this post


Link to post
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.

×