Code
<style>
.slider {
position: relative;
width: 102%;
max-width: 1092px;
height: 210px;
margin: -9px -8px 1px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.slide {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 0;
transform: scale(1.05);
transition: opacity 1s ease, transform 1s ease;
}
.slide.active {
opacity: 1;
transform: scale(1);
z-index: 1;
}
.slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
.nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 22px;
background-color: #ffffffcc;
color: #333;
border: 1px solid #ccc;
padding: 8px 12px;
cursor: pointer;
z-index: 2;
transition: all 0.3s ease;
}
.nav:hover {
background-color: #fff;
color: #000;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.nav.prev {
left: 10px;
}
.nav.next {
right: 10px;
}
</style>