TrulyNewbie Posted November 20, 2020 Share Posted November 20, 2020 Hi, I've been trying to figure this out all day. I have a pinned section with the same div name. That works. When I scroll away from the pin, I want it to fade out (onLeave) as the new one settles in. How can I make this happen? Because of the divs having the same name (ac f repeater field), I know it has to be and array of some sort but I just can't figure it out. I tried to make a array timeline with a let = leavesection.. Please help when me you can. Thank you. See the Pen oNLrzje by NewbieRuby (@NewbieRuby) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted November 20, 2020 Share Posted November 20, 2020 Hey TrulyNewbie. I don't understand the end goal. Can you please try to rephrase what you're trying to accomplish? Link to comment Share on other sites More sharing options...
TrulyNewbie Posted November 20, 2020 Author Share Posted November 20, 2020 Hi Zach, On WordPress I have a repeater field that I’ve pinned. It works. But I’ve chosen to not have a background color on the Main pin because I want a stacked affect. In side the pinned div is a column for an image. I basically want the image to disappear as I scroll to the next pinned element. is there a way I can privately send you a link to my site so you can see what I mean? thank you Link to comment Share on other sites More sharing options...
ZachSaucier Posted November 21, 2020 Share Posted November 21, 2020 I think it would be better to focus on the demo that you have created. In it you only have one pinned section. So you just want the content inside of it to fade at some point? 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