Hello. I've been struggling with this for days. As you will be able to see, I'm not very good at javascript code - sorry. I actually thought the use-requirement would be fairly common but can't find any examples. Currently my CodePen doesn't work at all. If I remove the
t1.from(flipper.querySelectorAll('.card'), {
opacity: .6;
});
code it will display the markers and sort of moves the boxes down the page but still doesn't do anything else.
What I'm trying to do is:
have multiple sections that trigger their own content animations.
have the left hand side (.big) work as the scroller to define the start and end. Probably don't really need this if I can sticky the elements in the right hand panel.
have any number of divs in the right hand column that optically replace each other as you scroll down the page. For example, if there are 2 elements they will replace at 50%. If 3 it will be at 33% and 66%. Etc.
need the .holder element to be sticky inside its parent div.
may need a way to define the height of .holder based on the tallest .card element.
In the CodePen I've dummied up my basic issue. Really hope someone can help shed some light on what I've been doing wrong. Thanks in advance.
I've used different opacities here so I can hopefully see what is going on rather than opacity 0 and 1. In the final version I would need to start with the first .card element at full opacity and then hid as the others come online.