Jump to content
Search Community

matchMedia is is weird.

kku98057 test
Moderator Tag

Recommended Posts

Sorry about the confusion there, @kku98057. That is indeed a bug that is fixed in the next release which you can preview at https://assets.codepen.io/16327/gsap-latest-beta.min.js

 

It only affects yPercent/xPercent animations - the cached values didn't get uncached. 

 

In the meantime, you can simply use a .fromTo() tween -OR- you can gsap.set() your initial values before you do your .from() to force them to be what they're supposed to be (rather than pulling from the cache). You're welcome to use that beta file (don't load it from that URL, though, because that file changes frequently - download it and push it to your server instead). 


Again, I apologize for the hassle. 

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.
×
×
  • Create New...