Share Posted September 13, 2020 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 More sharing options...
Share Posted September 13, 2020 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 2 Link to comment Share on other sites More sharing options...
Share Posted September 13, 2020 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 3 1 Link to comment Share on other sites More sharing options...
Share Posted September 13, 2020 Ah, looking at @mikel's pen, now I got it, too. Sorry for the misunderstanding @ozcancelik. 2 1 Link to comment Share on other sites More sharing options...
Author Share Posted September 13, 2020 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 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