contact
Subscribe to be notified when we go live
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Slideshow</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="slideshow-container">
<div class="slide fade zoom">
<img src="image1.jpg" style="width:100%">
</div>
<div class="slide fade zoom">
<img src="image2.jpg" style="width:100%">
</div>
<div class="slide fade zoom">
<img src="image3.jpg" style="width:100%">
</div>
</div>
<script src="scripts.js"></script>
</body>
</html>
CSS (styles.css)
css
Copy code
body {
font-family: Arial, sans-serif;
margin: 0;
background-color: #f3f3f3;
}
.slideshow-container {
position: relative;
max-width: 1000px;
margin: auto;
overflow: hidden;
}
.slide {
display: none;
position: absolute;
width: 100%;
height: 100%;
}
.fade {
animation-name: fade;
animation-duration: 1.5s;
}
@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
.zoom {
animation-name: zoom;
animation-duration: 3s;
animation-fill-mode: forwards;
}
@keyframes zoom {
from {transform: scale(1);}
to {transform: scale(1.1);}
}
img {
vertical-align: middle;
width: 100%;
height: auto;
}