Jump to content
Search Community

Transition snapping onto last value instead of smoothly transitioning

DeDX test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution

It looks like you're making one of the common mistakes - you're NESTING a ScrollTrigger inside tween that's inside a timeline. You can't have the ScrollTrigger and the timeline both fighting for control of the tweens playhead. See 

 

The solution: either put the ScrollTrigger on the timeline or don't even use a timeline at all and just use a standard tween: 

// BAD
scTl.current.to(el("#building"), {...

// GOOD
gsap.to(el("#building"), {...

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