The links are inside a div and the buttons that call them are outside this div, everything is working, I would just like to put an animation in this transition. P.S. The transition is horizontal.
<style type="text/css">
html, body {margin: 0; padding: 0;}
#telass{
top: 100px;
left: 0;
width:100%;
height: 80%;
overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;
display: inline-block;
vertical-align: middle;
position: absolute;
}
.tela{
top: 100px;
width: 100%;
height: 200px;
display: inline-block;
vertical-align: top;
height: 1000px;
}
#tela1{
background-color: red;
}
#tela2{
background-color: blue;
}
#tela3{
background-color: yellow;
}
</style>
<script src="js.js"></script>
<a href="#tela1">Tela 1</a>
<a href="#tela2">Tela 2</a>
<a href="#tela3"> Tela 3</a>
<div id="telass">
<div id = "tela1" class="tela">
<p>Tela 1</p>
</div>
<div id = "tela2" class="tela">
<p>Tela 2</p>
</div>
<div id = "tela3" class="tela">
<h1>Tela 3</h1>
</div>