See the snippet.. got some sections containing the full size of the viewport. When the user is scrolling it should scroll automatically to the next one of the class ".section"
English isn't my main language, sorry for some mistakes in grammar or sth like that.
$(document).ready(function(e){
var position = $(window).scrollTop();
$(window).scroll(function() {
var scroll = $(window).scrollTop();
if(scroll > position) {
//scrolling down
} else {
//scrolling up
}
position = scroll;
});
});
html,body { margin:0;padding:0;width: 100%;}
.section {
width: 100%;
height:100vh;
background-color:#000;
}
.section:nth-child(odd) { background-color:#fff;}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<section id="Home" class="section"></section>
<section id="Home" class="section"></section>
<section id="Home" class="section"></section>
<section id="Home" class="section"></section>
<section id="Home" class="section"></section>