mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:09:45 +00:00
Доработала
This commit is contained in:
1 parent
2849fdb9cb
commit
ee37db0e2c
4 files changed
+6
-9
No files matched your search
@@ -39,7 +39,7 @@ function Slider({ autoPlay = false, autoPlayTime = 3000, images = false }) {
|
||||
modules={[Navigation, Pagination]}
|
||||
spaceBetween={20}
|
||||
slidesPerView={itemsPerSlide} // Количество картинок в видимой зоне
|
||||
slidesPerGroup={itemsPerSlide} // Перелистывать сразу по 2
|
||||
slidesPerGroup={1} // Перелистывать сразу по 2
|
||||
loop={true} // Зацикленный слайдер
|
||||
navigation // Стрелки
|
||||
pagination={{ clickable: true }}
|
||||
|
||||
@@ -8,16 +8,13 @@
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 60vh;
|
||||
@media (max-width: 768px) {
|
||||
height: 35vh;
|
||||
}
|
||||
height: 50vh;
|
||||
}
|
||||
|
||||
.slide-image {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-height: 100%;
|
||||
height: 350px;
|
||||
object-fit: cover;
|
||||
object-position: center center;
|
||||
border-radius: 8px;
|
||||
|
||||
Reference in new issue
Block a user