If you're considering incorporating keyboard buttons, but also want to display arrows on the page itself, you can experiment with this code snippet. You can view an example here.
<div class="man" id="man-1">
<a href="#man-2"><i class="arrow down"></i></a>
<p>Man-1</p>
</div>
<div class="man" id="man-2">
<a href="#man-1"><i class="arrow up"></i></a>
<a href="#man-3"><i class="arrow down"></i></a>
<p>Man-2</p>
</div>
<div class="man" id="man-3">
<a href="#man-2"><i class="arrow up"></i></a>
<a href="#man-4"><i class="arrow down"></i></a>
<p>Man-3</p>
</div>
<div class="man" id="man-4">
<a href="#man-3"><i class="arrow up"></i></a>
<p>Man-4</p>
</div>
<style>
*{
margin: 0; padding: 0;
}
.man{
width: 100%; height: 100vh;
position:relative;
}
.arrow{
position: absolute;
left: 50%; transform: translateX(-50%);
border: solid black;
border-width: 0 3px 3px 0;
display: inline-block;
padding: 3px; margin: 10px 0;
}
.up{
top: 0;
transform: rotate(-135deg);
-webkit-transform: rotate(-135deg);
}
.down{
bottom: 0;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
p{
position: relative;
top: 50%; transform: translateY(-50%);
text-align: center;
font-size: 30px; font-family: Arial;
}
#man-1{
background: blue;
}
#man-2{
background: purple;
}
#man-3{
background: green;
}
#man-4{
background: red;
}
</style>
To prevent scrolling using a mouse, simply add the following snippet to your style code:
body{
overflow: hidden;
}