Jump to content
Search Community

scrub issue

tailbreezy test
Moderator Tag

Go to solution Solved by tailbreezy,

Recommended Posts

  • Solution

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

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.

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