Jump to content
GreenSock

friendlygiraffe

Linear.EaseNone has no affect

Go to solution Solved by Tahir Ahmed,

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

Hi, I'm sure I'm missing something obvious here, but why can't I remove the default ease from this tween?

TweenMax.to(".box", 5, {x:1000, ease:Linear.EaseNone});

See the Pen rxeaGV by friendlygiraffe (@friendlygiraffe) on CodePen

Link to comment
Share on other sites

  • Solution

Hi @friendlygiraffe,

If I am not wrong, there is no `.EaseNone` (i.e. UpperCase) but it is supposed to be `.easeNone`. So your ease value should look like: `ease: Linear.easeNone` (i.e. camelCase).

  • Like 1
Link to comment
Share on other sites

Well at least I was right about missing something obvious

 

Is it better to use Power0.easeNone now ?

Link to comment
Share on other sites

`Power0`, `Power1`, `Power2`, `Power3` and `Power4` are just more intuitive names for `Linear`, `Quad`, `Cubic`, `Quart` and `Quint` respectively. Read more about them here.

 

You can use either.

  • Like 4
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.
×