I have a question about creating multiple <section>
elements on a page.
I am looking to build an HTML document with several <section>
tags, as outlined below.
<html>
<head>
</head>
<body>
<section id="section1"></section>
<section id="section2"></section>
<section id="section3"></section>
</body>
</html>
I would like to restrict the user's ability to scroll only until the end of the section1. Once they click on a next button, it should go to section2.
Is there a JavaScript plugin or CSS technique that can achieve this functionality?
Please advise if this question has been asked before.
Thank you.
Addition: I came across a website that exemplifies what I am trying to achieve. The designer includes all the code within one HTML page, but users are only allowed to scroll to the end of each section without immediately transitioning to another section.