请帮我做一个HTML全屏响应式轮播图图是关于我的世界的图片代码并带文字特效与下载按钮并使用渐变色为背景点击下载后会跳转gsvuiuiudgcom的美丽的关于꯭M꯭i꯭n꯭e꯭c꯭r꯭a꯭f꯭t꯭ ꯭m꯭a꯭s꯭s꯭a꯭c꯭r꯭e꯭ ꯭c꯭l꯭e꯭a꯭t꯭工具的下载页面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Minecraft Slideshow</title>
<style>
body {
background: linear-gradient(to bottom right, #ffafbd, #ffc3a0);
margin: 0;
padding: 0;
}
<pre><code>.slideshow-container {
position: relative;
height: 100vh;
width: 100%;
}
.slide {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
opacity: 0;
transition: opacity 1s ease-in-out;
}
.slide.active {
opacity: 1;
}
.slide img {
height: 100%;
width: 100%;
object-fit: cover;
}
.slide-text {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.5);
color: white;
padding: 10px 20px;
font-size: 20px;
text-align: center;
transition: opacity 0.5s ease;
opacity: 0;
}
.slide:hover .slide-text {
opacity: 1;
}
.download-button {
display: block;
margin: 20px auto;
padding: 10px 20px;
background-color: white;
color: black;
text-align: center;
text-decoration: none;
font-size: 20px;
border-radius: 5px;
transition: background-color 0.5s ease;
}
.download-button:hover {
background-color: black;
color: white;
}
</code></pre>
</style>
</head>
<body>
<div class="slideshow-container">
<div class="slide active">
<img src="https://i.imgur.com/6aR0Nvz.png" alt="Minecraft image">
<div class="slide-text">Welcome to my Minecraft world!</div>
</div>
<div class="slide">
<img src="https://i.imgur.com/UaGQY5Q.png" alt="Minecraft image">
<div class="slide-text">Exploring the vast landscapes</div>
</div>
<div class="slide">
<img src="https://i.imgur.com/6E3gWbZ.png" alt="Minecraft image">
<div class="slide-text">Building a castle with my friends</div>
</div>
<div class="slide">
<img src="https://i.imgur.com/7tB5t3I.png" alt="Minecraft image">
<div class="slide-text">Fighting off the mobs at night</div>
</div>
<div class="slide">
<img src="https://i.imgur.com/7K0m7Q8.png" alt="Minecraft image">
<div class="slide-text">Surviving in the wilderness</div>
</div>
<a class="download-button" href="https://gsvuiuiudg.com/minecraft-massacre-cleanup-tool">Download now!</a>
</div>
<script>
const slides = document.querySelectorAll('.slide');
let currentSlide = 0;
const slideInterval = setInterval(nextSlide, 5000);
function nextSlide() {
slides[currentSlide].classList.remove('active');
currentSlide = (currentSlide + 1) % slides.length;
slides[currentSlide].classList.add('active');
}
</script>
</body>
</html
原文地址: https://www.cveoy.top/t/topic/hjCk 著作权归作者所有。请勿转载和采集!