amitr95 Posted July 19, 2022 Share Posted July 19, 2022 I'm trying to achieve the following flow with my linked demo: User scrolls past .configurator and the section pins Then, when the user tries to scroll down #configurator-pin pins and moves up and down as the user scrolls (like position: sticky) And then the content in #configurator-freeroam scrolls as standard The answer by akapowl in this thread is sort of what I'm after. However in my demo, I'm trying to make the .configurator pin (which includes the header) and then pin the left and right sections. My left and right sections looks to be working fine, but I cannot get the header in the pin, even though I've defined trigger: container. See the Pen abYJEVo by amit_rai95 (@amit_rai95) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted July 19, 2022 Share Posted July 19, 2022 The start trigger is just the place that the pin initially takes effect. The element defined as the pinned element is the one that gets pinned. In your case that's #configurator-pin - this element doesn't contain the header - so the header element isn't being pinned. You can pin both of them separately like this? See the Pen qBoroZy?editors=1010 by GreenSock (@GreenSock) on CodePen Hope this helps! 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