Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
_Greg _

How to use startAt

Go to solution Solved by GreenSock,

Recommended Posts

startAt is a legacy property. Probably not really needed since we have .from(), .fromTo() or a .set() followed by a .to() tween.

 

Happy tweening.

:)

 

  • Like 1
Link to comment
Share on other sites

  • Solution

Actually, startAt isn't legacy - we just don't really promote it. That's just what .fromTo() uses internally:

gsap.fromTo(".box", {x: 100}, {x: 500});

// SAME
gsap.to(".box", {startAt: {x: 100}, x: 500});

👍

  • Like 3
Link to comment
Share on other sites

Whoops. Can I blame @Carl? He told me it was legacy a few years ago. :D

 

  • Like 1
  • Haha 1
Link to comment
Share on other sites

11 hours ago, PointC said:

Whoops. Can I blame @Carl? He told me it was legacy a few years ago. :D

It was legacy back then...but not anymore (kidding)

 

He shall receive one forums demerit accordingly. Thanks for reporting this infraction, Craig. ;)

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