After exploring multiple techniques for changing opacity and position on scroll, I am still struggling to connect them effectively.
What I'm Looking For:
I have a container with 4 words in a row. Only one word should be visible at a time, transitioning as the user scrolls. The next word should appear from the right as the user scrolls down, and vice versa when scrolling up. I have created a visual representation of my goal:
Step 1:
As the user scrolls, text begins to appear from the right (as shown with 'text 1' and 'text 2'). This transition should apply to each word in the row.
https://i.sstatic.net/V22yU.jpg
Step 2:
Continuing to scroll will move 'text 2' into the position of 'text 1' while 'text 1' becomes less opaque.
https://i.sstatic.net/kwLXj.jpg
Subsequent Steps:
The final two images illustrate how 'text 1' eventually disappears with an opacity change to 0, leaving 'text 2' in its place.
https://i.sstatic.net/oVZPs.jpg https://i.sstatic.net/PDMHk.jpg
The example above details the effect on scroll down, but it should also work in reverse for scroll up. As the user scrolls past 'text 2', 'text 3' should appear, and so forth.
Regrettably, I cannot provide the code I've attempted as I am unsure where to begin tackling this task. One idea I had was to establish current and next sliders.
I hope the description alongside the images is clear enough, as I myself am uncertain if I fully grasp it.