Spaces:
Running
Running
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body, html { | |
height: 100%; | |
width: 100%; | |
overflow: hidden; | |
} | |
.slideshow-container { | |
position: relative; | |
width: 100%; | |
height: 100vh; | |
overflow: hidden; | |
} | |
.slide { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
display: none; | |
animation-name: fade; | |
animation-duration: 1.5s; | |
} | |
.slide img { | |
width: 100%; | |
height: 100%; | |
object-fit: cover; /* Cover the entire slide area */ | |
} | |
/* Fade animation */ | |
@keyframes fade { | |
from {opacity: 0.4} | |
to {opacity: 1} | |
} | |
/* Next & previous buttons */ | |
.prev, .next { | |
cursor: pointer; | |
position: absolute; | |
top: 50%; | |
width: auto; | |
padding: 16px; | |
margin-top: -22px; | |
color: white; | |
font-weight: bold; | |
font-size: 24px; | |
transition: 0.6s ease; | |
border-radius: 0 3px 3px 0; | |
user-select: none; | |
background-color: rgba(0, 0, 0, 0.3); | |
text-decoration: none; | |
} | |
.next { | |
right: 0; | |
border-radius: 3px 0 0 3px; | |
} | |
.prev { | |
left: 0; | |
} | |
.prev:hover, .next:hover { | |
background-color: rgba(0, 0, 0, 0.8); | |
} | |
/* Dots container */ | |
.dots-container { | |
position: absolute; | |
bottom: 20px; | |
width: 100%; | |
text-align: center; | |
} | |
/* The dots/bullets/indicators */ | |
.dot { | |
cursor: pointer; | |
height: 15px; | |
width: 15px; | |
margin: 0 5px; | |
background-color: rgba(255, 255, 255, 0.5); | |
border-radius: 50%; | |
display: inline-block; | |
transition: background-color 0.6s ease; | |
} | |
.active, .dot:hover { | |
background-color: white; | |
} | |
/* Responsive adjustments for smaller screens */ | |
@media only screen and (max-width: 768px) { | |
.prev, .next { | |
padding: 12px; | |
font-size: 18px; | |
} | |
.dot { | |
height: 12px; | |
width: 12px; | |
} | |
} |