Here's the deal:
I plan to showcase 4 divs on my page. Each div will have a specific height (around 1500px) but will span the full width of the screen. To add some flair, each div will be a different color.
My goal is for JavaScript to kick in once the user starts scrolling and automatically guide them to the next div when they reach a certain point.
Imagine this scenario: as the user scrolls vertically and div #2 comes into view while div #1 fades away, I want the page to seamlessly scroll down so that div #2 aligns perfectly with the top of the browser window right before div #1 completely disappears.
An example that showcases this concept well can be seen at: The functionality there is what I'm aiming for but struggling to implement.
1
Content here
2
Content here
3
Content here
4
Content here