Jump to content
Search Community

After scrubbing, I want to do pin

kku98057 test
Moderator Tag

Recommended Posts

That's because you've got 2 ScrollTrigger-based animations affecting the SAME element and by default they render immediately. So your .from() sets the yPercent to 300 and then when you create your .to() on the same element, it reads the current value as 300 and it's animating to 300 so it looks like it doesn't move. 

 

Just set immediateRender: false on that 2nd one. 

 

See the Pen dyJqzOP?editors=1010 by GreenSock (@GreenSock) on CodePen

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