Currently my carrot has 3 divs, and I would like the divs to transition from 1 to 2 and 2 to 3 and 3 to 1 with a 2-second timer, how do I do that? my code looks like this:
<div class="container">
<div class="wall wall-1" id="wall-1";>
<a href="#wall-3"><img src="imagens/setae.png"
id="imgcarrosele"/></a>
<a href="#wall-2"><img src="imagens/setae.png"
id="imgcarroseld"/></a>
</div>
<div class="wall wall-2" id="wall-2">
<a href="#wall-1"><img src="imagens/setae.png"
id="imgcarrosele"/></a>
<h1>carrosel numero - 2</h1>
<a href="#wall-3"><img src="imagens/setae.png"
id="imgcarroseld"/></a>
</div>
<div class="wall wall-3" id="wall-3">
<a href="#wall-2"><img src="imagens/setae.png"
id="imgcarrosele"/></a>
<h1> carrosel numero - 3</h1>
<a href="#wall-1"><img src="imagens/setae.png"
id="imgcarroseld"/></a>
</div>
</div>
css
.container{
width: 800x;
height: 500px;
margin: -20px auto 0px auto;
margin-top: 0px;
}
.wall{
display: none;
width: 100%;
height: 100%;
}
.wall-1{
background-color: #f00;
background-size: cover;
}
.wall-2{ background-color: #0f0;}
.wall-3{ background-color: #00f;}
.wall:target{
display: block;
}
img#imgcarrosele {
width: 100px;
height: 100px;
float: left;
opacity: 0.3;
margin-top: 200px;
}
img#imgcarrosele:hover {
opacity: 1;
}
img#imgcarroseld {
width: 100px;
height: 100px;
float: right;
opacity: 0.3;
margin-top: 200px;
margin-left: 0px;
transform: rotateY(180deg);
}
img#imgcarroseld:hover {
opacity: 1;
}
img#idimg {
width: 800px;
height: 500px;
position:relative;
}