Jump to content


from() and clearProps clarification

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'm just wondering if the behaviour exhibited here is intended:


See the Pen IqAKh by jamiejefferson (@jamiejefferson) on CodePen


immediateRender is not working as I was expecting for from() tweens when clearProps is used.


1.9.0 seems to be the last version I can find where this works the same.

Link to comment
Share on other sites

I'm looking into this, Jamie. Stand by...

Link to comment
Share on other sites

Quick update: I know why this is happening, and I'm just trying to craft the best solution, that's all. It's trickier than it may seem (I'll spare you the lengthy explanation). Stand by...

Link to comment
Share on other sites

Okay, check out the attached preview of the upcoming 1.11.0 release. I believe it's fixed now, Jamie. Thanks again for pointing this out and creating a stellar codepen that clearly demonstrated things. I wish more people in the forums did that ;)



  • Like 1
Link to comment
Share on other sites

Thanks Jack, it seems to be working well now. I use clearProps a lot so this is a huge help.


I've been using this effect for months, but I suppose I never paid enough attention to ever notice it... It took this post for me to finally realise what was going on.


Just wondering if there are any surprises in this rc that might make it not quite ready for a production release?

Link to comment
Share on other sites

Actually, since 1.11.0 rolls a bunch of enhancements as well as little bug fixes into one big release, I'd actually consider it more ready for a production release than any version yet. The main reason it isn't released yet is because we were just hammering away at it a bit more and researching a few other reports of edge case odd behavior from PREVIOUS releases so that if any tweaks were necessary to the code base, we'd get it all into 1.11.0 rather than pushing it to the next minor release. Plus we've needed to make updates to some docs and prepare the notes for the 1.11.0 release (this stuff takes a lot longer than some may imagine). 


In short, I'm not aware of any problems in 1.11.0 at this point and if I were releasing a "real" site tomorrow, I'd be using 1.11.0 myself. Thanks for asking. 


Obviously please let us know if you notice any odd behavior whatsoever with the preview files. 

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