Solution tailbreezy Posted January 25, 2021 Solution Share Posted January 25, 2021 Hello guys, I stumbled upon a surprising problem with scrub. When I scrub the animation plays to maybe variable progress values depending on viewport height, but never to progress(1). Solved it. Turns out scrub is totally dependent on having end value set on your ScrollTrigger and you get weird results when not setting one. Link to comment Share on other sites More sharing options...
ZachSaucier Posted January 25, 2021 Share Posted January 25, 2021 Hey tailbreezy. 7 minutes ago, tailbreezy said: Turns out scrub is totally dependent on having end value set on your ScrollTrigger and you get weird results when not setting one. If you don't set an end value for a ScrollTrigger it will use the default value. If that's not what you need, you should change it to what you need It's only "weird" if you're expecting something that's not inline with the specs. FYI if you post an issue like this in the future please also post a minimal demo along with it so that we can see what's going on. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now