Adesh Posted January 10, 2023 Share Posted January 10, 2023 I was attempting to create some animation, such as an active image based on right side scroll, but everything is working properly except the Pin sidebar does not end at the bottom of the section. Could you please look into this and let me know what I'm doing wrong and what the solution is? See the Pen qByrRKz by Adesh-Evince (@Adesh-Evince) on CodePen Link to comment Share on other sites More sharing options...
Solution akapowl Posted January 10, 2023 Solution Share Posted January 10, 2023 You can set an endTrigger element, as described in the ScrollTrigger documentation, @Adesh - e.g. the container wrapping your text-elements on the right side. Then you'll need to set the end according to that element, which will likely be 'bottom bottom' in the case mentioned above, so when the bottom of that element hits the bottom of the window - btw right now you do not have an end set at all, only the start twice, so that might be something you'd want to change. endTrigger String | Element - The element (or selector text for the element) whose position in the normal document flow is used for calculating where the ScrollTrigger ends. You don't need to define an endTrigger unless it's DIFFERENT than the trigger element because that's the default. 2 Link to comment Share on other sites More sharing options...
Adesh Posted January 10, 2023 Author Share Posted January 10, 2023 Ah!! I've got you covered. Thank you for your prompt assistance. You guys are amazing; keep it up. 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