TerraHQ Posted September 13, 2023 Share Posted September 13, 2023 Hi All, I'm working with two ScrollTriggers: one that pins and enables horizontal scrolling (referenced as ".horizontal-scroll"), and the other that triggers an animation in the "counter-section." When I remove the ".horizontal-scroll" script, the trigger position for the "counter-section" works perfectly. If I dont remove the script the counter section fires at wrong position. Thanks in advance! See the Pen VwqWWae by amaiaTF (@amaiaTF) on CodePen Link to comment Share on other sites More sharing options...
Solution Carl Posted September 13, 2023 Solution Share Posted September 13, 2023 thx for the demo. I've never had to use this but check the ScrollTrigger docs for pinnedContainer. i think setting it to "main" on the second ScrollTrigger solves your issue. See the Pen MWZoEgp?editors=0010 by snorkltv (@snorkltv) on CodePen be sure to thank @GreenSock for adding all these wonderful features 2 Link to comment Share on other sites More sharing options...
TerraHQ Posted September 14, 2023 Author Share Posted September 14, 2023 hey @Carl long time no time no bothering to you ❤️ . you are a genious! - next time I will take a look before posting 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