_Greg _ Posted December 16, 2021 Share Posted December 16, 2021 Hi! I find on documantation page property startAt What different between .fromTo and startAt? What are the features of using startAt See the Pen YzrVzqp?editors=0010 by gregOnCodePen (@gregOnCodePen) on CodePen Link to comment Share on other sites More sharing options...
PointC Posted December 16, 2021 Share Posted December 16, 2021 startAt is a legacy property. Probably not really needed since we have .from(), .fromTo() or a .set() followed by a .to() tween. Happy tweening. 1 Link to comment Share on other sites More sharing options...
Solution GreenSock Posted December 16, 2021 Solution Share Posted December 16, 2021 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}); 👍 3 Link to comment Share on other sites More sharing options...
PointC Posted December 16, 2021 Share Posted December 16, 2021 Whoops. Can I blame @Carl? He told me it was legacy a few years ago. 1 1 Link to comment Share on other sites More sharing options...
GreenSock Posted December 17, 2021 Share Posted December 17, 2021 11 hours ago, PointC said: Whoops. Can I blame @Carl? He told me it was legacy a few years ago. It was legacy back then...but not anymore (kidding) He shall receive one forums demerit accordingly. Thanks for reporting this infraction, Craig. 1 1 Link to comment Share on other sites More sharing options...
_Greg _ Posted December 17, 2021 Author Share Posted December 17, 2021 Thank you @GreenSock @PointC Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now