46 lines
770 B
CSS
46 lines
770 B
CSS
.swiper-container {
|
|
width: 520px;
|
|
height: 280px;
|
|
overflow: hidden;
|
|
margin: 100px auto;
|
|
position: relative;
|
|
}
|
|
.swiper-pagination {
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
bottom: 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
.swiper-pagination-item {
|
|
width: 15px;
|
|
height: 15px;
|
|
border-radius: 100%;
|
|
background: #fff;
|
|
margin-right: 10px;
|
|
cursor: pointer;
|
|
}
|
|
.swiper-wrapper {
|
|
display: flex;
|
|
}
|
|
.swiper-button {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 25px;
|
|
cursor: pointer;
|
|
}
|
|
.swiper-button-prev {
|
|
left: 10px;
|
|
}
|
|
.swiper-button-next {
|
|
right: 10px;
|
|
}
|
|
.active {
|
|
background: red;
|
|
}
|
|
.dh {
|
|
transition-duration: 300ms;
|
|
}
|