Jump to content
Search Community

How to reset same properties on the same elements but in different timelines?

glem1337 test
Moderator Tag

Recommended Posts

Hey glem1337. .from() properties are applied immediately. Since your tween with the ScrollTrigger is a relative tween, it will use the current value (which was just set to 0) as the starting value. So your ScrollTrigger animation goes from 0 to 0. That's probably not what you want ;) 

 

There are a lot of workarounds (like using a .fromTo() in your ScrollTrigger animation instead) but the best one likely depends on the setup in your project. 

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