Jump to content
GreenSock

Jimmi Heiserman

.from misbehaving for me, moves to 0px, basic 101 stuff

Moderator Tag

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

I used to be a GSAP wiz for years. But haven't touched it for close to a year, and now I feel like a noob for forgetting the very basics. "From" is supposed to tween from a provided number to the pre-existing value. I made the simplest little FROM CodePen so someone can point out how I am misunderstanding this feature from my time away from this tool. I want the words to be initialized at 200px, then animate FROM 400px (back to their 200px starting point). But it goes all the way back to 0px. What am I doing wrong?

See the Pen GbMEBa by jimmi_heiserman (@jimmi_heiserman) on CodePen

Link to comment
Share on other sites

It's a case of needing to set immediateRender:false. (It's true by default)

 

See the Pen ydzorx by PointC (@PointC) on CodePen

 

Happy tweening.

:)

 

  • Like 1
Link to comment
Share on other sites

Happy to help. I'm sure it will all come back to you quickly, but let us know if you have additional problems or questions.

 

Happy tweening.

:)

 

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