<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Slide de Imagens</title>
<style>
* {box-sizing: border-box;}
body {font-family: Arial, sans-serif;}
.slideshow-container {
position: relative;
max-width: 100%;
margin: auto;
}
.mySlides {
display: none;
}
img {
vertical-align: middle;
width: 100%;
height: auto;
}
.fade {
animation-name: fade;
animation-duration: 2s;
}
@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
</style>
</head>
<body>
<div class="slideshow-container">
<a href="https://godpromo.shop">
<div class="mySlides fade">
<img src="imagem1.jpg" alt="Imagem 1">
</div>
<div class="mySlides fade">
<img src="https://i.imgur.com/Nr7YDO8.png" alt="Imagem 2">
</div>
<div class="mySlides fade">
<img src="https://imgur.com/a/vLjuNDp" alt="Imagem 3">
</div>
<div class="mySlides fade">
<img src="imagem4.jpg" alt="Imagem 4">
</div>
<div class="mySlides fade">
<img src="imagem5.jpg" alt="Imagem 5">
</div>
</a>
</div>
<script>
let slideIndex = 0;
showSlides();
function showSlides() {
let i;
let slides = document.getElementsByClassName("mySlides");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
slides[slideIndex-1].style.display = "block";
setTimeout(showSlides, 5000); // Muda a imagem a cada 5 segundos
}
</script>
</body>
</html>