I am attempting to replicate the unique scrolling feature seen on this particular page.
Essentially, there are two columns above the fold that can be scrolled independently, but I want their scroll depths to be linked. When a certain depth is reached while scrolling on #scrollOne, I want #scrollTwo to move up to a specific point and then stop scrolling.
My layout consists of two divs inside a grid container:
<div class="container">
<div id="scrollOne" class="scrollable">{....content....}</div>
<div id="scrollTwo" class="scrollable">{....content....}</div>
</div>
<div>....other content below...</div>
In addition, here is the relevant CSS code:
.container {
overflow: hidden;
}
.scrollable {
overflow-y: scroll;
height: 75vh;
scrollbar-width: none;
}
Everything is functioning correctly except for the synchronization between the two divs during scrolling. Any assistance or suggestions would be highly valued.