<!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://megafilmes4k.xyz">
<div class="mySlides fade">
<img src="https://i.imgur.com/yw3Bxz4.jpeg" alt="Imagem 1">
</div>
<div class="mySlides fade">
<img src="https://i.imgur.com/90Z7kqR.png" alt="Imagem 2">
</div>
<div class="mySlides fade">
<img src="https://i.imgur.com/HAnjoSE.png" alt="Imagem 3">
</div>
<div class="mySlides fade">
<img src="https://i.imgur.com/DD6ocO2.png" alt="Imagem 4">
</div>
<div class="mySlides fade">
<img src="https://i.imgur.com/ulUM0EE.jpeg" 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>