Jump to content
GreenSock

ozcancelik

ScrollTrigger with scrollerProxy scrub only issue

Moderator Tag

Recommended Posts

Hello,

 

I use a smooth-scrollbar within a project. I can run it with ScrollTrigger with scrollerProxy(). No problem. But it only works with scrub:true. I just can't use it to trigger it. I also used it with locomotive-scroll. The scrub problem is not there. 

(In codepen if you change scrub:true it will work)


 

Is this a scrollProxy bug? Or where am I doing wrong?

 

Thank you.
Ozcan

See the Pen WNwJqRj by ozcancelik (@ozcancelik) on CodePen

Link to comment
Share on other sites

Hey @ozcancelik

 

I just tested your pen with scrub: false, scrub: true, and scrub: 1 and they all seem to behave the way, I'd expect them to.

 

I don't fully understand your issue. Could you maybe try explaining your issue once more?

 

Cheers,

Paul 

  • Like 2
Link to comment
Share on other sites

Hey @ozcancelik,

 

Welcome to the GreenSock Forum.

 

Define a certain starting position of the ScrollTrigger.
The default for type: "toggle" ScrollTriggers: "top bottom"; for type: "progress": "top center".

 

See the Pen abNGeKZ?editors=1010 by mikeK (@mikeK) on CodePen

 

Does it help?

 

Happy twening ...

Mikel

  • Like 3
  • Thanks 1
Link to comment
Share on other sites

Thanks for help @mikel

 

I didn't think it would be that easy. I guess just in this case always need starting position.

 

Thank you again.

 

(Also can someone explain me why my pen doesn't show up even I entered in topic and not linking even i linked in content.)

 

6 minutes ago, mikel said:

Hey @ozcancelik,

 

Welcome to the GreenSock Forum.

 

Define a certain starting position of the ScrollTrigger.
The default for type: "toggle" ScrollTriggers: "top bottom"; for type: "progress": "top center".

 

 

 

 

Does it help?

 

Happy twening ...

Mikel

 

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