Jump to content
GreenSock

erated

Getting invalid ease tween value: [object Object] on all of the easings

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 guys,

 

Trying to do somethign like this

 

TweenMax.fromTo($(".circle-top-left"), 1,
          {css: {top: "10", left: "100", rotation: "0"}},
          {css: {top: "60", left: "382", rotation: "200", ease: Strong.easeIn}}
      );
 
and I get an error invalid ease tween value: [object Object]
 
this happens on all easings.
 
All help appriciated!
Link to comment
Share on other sites

You've nested the ease inside the css object (which is only meant for CSS properties). Try this:

TweenMax.fromTo($(".circle-top-left"), 1,
    {css: {top: "10", left: "100", rotation: "0"}},
    {css: {top: "60", left: "382", rotation: "200" }, ease: Strong.easeIn}
);

or better yet

TweenMax.fromTo($(".circle-top-left"), 1,
    { top: "10", left: "100", rotation: "0" },
    { top: "60", left: "382", rotation: "200", ease: Strong.easeIn }
);

since the CSS wrapper isn't required anymore (it auto-detects the valid CSS properties among eases etc).

  • Like 2
Link to comment
Share on other sites

Thank you sir, you are a life saver.

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