Форум программистов, компьютерный форум, киберфорум
HTML, CSS
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
1 / 1 / 0
Регистрация: 04.02.2021
Сообщений: 19

swiper slider

29.11.2022, 18:18. Показов 695. Ответов 0

Студворк — интернет-сервис помощи студентам
Добрый вечер дамы и господа. Ситуация такова. Начал пользоваться Swiper slider. Почему-то сломалась вот эта ерунда. и поменять размеры точек. Всё отметил.
CSS
CSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
body {
    background-color: #FFFFFF;
}
.head {
    height: 100px;
    background-color: #F6F7FC;
}
 
.search {
    margin-right: 21px;
    height: 50px;
}
 
.navbar-brand {
}
.menu {
    text-align: right;
}
.nvmenu {
    width: 25px;
    height: 25px;
}
 
.off {
 
}
 
.navtext {
    height: 25px;
    margin-left: 4px;
    font-family: 'Nunito' , sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 27px;
 
    color: #2B313F;
 
}
 
a {
    padding-top: 0 !important;
    text-decoration: none;
}
 
.navvan {
    height: 25px;
}
 
img {
    padding: 0;
}
 
.buttton-nav {
    border: 0;
    background-color: white;
    border-radius: 0 6px 6px 0;
    padding: 12px;
    height: 50px;
}
 
.searchh-nav {
 
    background-color: white;
    border: 0;
    border-radius: 6px 0 0 6px;
 
}
 
.shadow-search {
    box-shadow: 0 6px 10px 2px rgba(77, 92, 129, 0.2);
    border-radius: 6px 6px 6px 6px;
}
 
.searchh-nav::placeholder {
    font-family: 'Nunito' , sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 27px;
    display: flex;
    align-items: center;
    color: #D3DBF2;
}
 
 
 
.bodyyy {
    margin-top: 0;
}
 
.catalogs {
    margin-top: 30px;
    height: 550px;
 
    background: #FFFFFF;
    /* vg */
 
    box-shadow: 0 15px 24px rgba(187, 194, 215, 0.5);
    border-radius: 10px;
}
 
.sales {
    margin-top: 60px;
    height: 290px;
 
    background: #FFFFFF;
    /* vg */
 
    box-shadow: 0 15px 24px rgba(187, 194, 215, 0.5);
    border-radius: 10px;
}
 
.sales-image {
    margin-top: 30px;
    height: 200px;
 
    background: #FFFFFF;
    /* vg */
 
    box-shadow: 0 15px 24px rgba(187, 194, 215, 0.5);
    border-radius: 10px;
}
 
.swipe-sli {
    background: #FFFFFF;
    /* ппп */
 
    box-shadow: 0 12px 14px rgba(77, 92, 129, 0.35);
    border-radius: 6px;
    width: 196px;
    height: 140px;
}
 
.swipe-wrap {
    padding-left: 12px;
    height: 168px;
}
 
 
.swipe-sli-img{
    margin: 6px;
    width: 184px;
    height: 88px;
    border-radius: 3px;
}
 
.txt-sss {
    padding-left: 12px;
}
.txt-sss-h1{
    width: 966px;
    height: 40px;
 
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    line-height: 49px;
    display: flex;
    align-items: center;
    margin: 0;
    color: #2B313F;
    padding-top: 12px;
}
 
.txt-sss-h2 {
    width: 966px;
    height: 30px;
 
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    display: flex;
    align-items: center;
    margin: 9px 0 0 0;
    color: #4B556C;
 
}
 
.txt-sss-h5 {
    width: 834px;
    height: 20px;
 
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    display: flex;
    align-items: center;
    margin: 0;
    color: #CEDDFF;
 
}
 
.swi {
    margin: 9px 0 0 0;
}
 
.swiper-slide-active {
    width: 196px;
    height: 100%;
}
 
.tag-swipe {
    margin-top: -6px;
}
 
.pag-but-swipe{
    width: 120px;
    height: 20px;
}
.swipe-pagination{
    margin-top: 4px;
}
 
.swiper-pagination-bullet {
    width: 16px;
    height: 16px;
    background: linear-gradient(233.13deg, #623CE9 12.05%, #A38DF1 90.18%);
}
 
.swipe-sl {
    width: 978px;
    height: 200px;
}
HTML5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css"/>
    <script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>
    <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.css">
 
    <link rel="stylesheet" href="assets/css/style.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000&display=swap" rel="stylesheet">
 
 
 
</head>
<body>
    <header class="head">
        <nav class="navbar navbar-expand-lg head">
            <div class="container">
                <a class="navbar-brand" href="#"><img src="assets/image/Frame11.svg" alt=""></a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <form class="d-flex search shadow-search col-lg-6" role="search">
                    <input class="form-control searchh-nav" type="search" placeholder="Поиск" aria-label="Search">
                    <button class="btn btn-outline-success buttton-nav" type="submit"><img src="assets/image/search.svg" alt=""></button>
                </form>
                <div class="navbar off">
                    <ul class="navbar-nav menu">
                        <li class="nav-item d-flex navvan">
                            <a class="nav-link active" aria-current="page" href="#"><img src="assets/image/star1.svg" alt="" class="nvmenu"><a class="navtext">Избранное</a></a>
                        </li>
                        <li class="nav-item d-flex navvan">
                            <a class="nav-link" href="#"><img src="assets/image/shopping-cart1.svg" alt="" class="nvmenu"><a class="navtext">Корзина</a></a>
                        </li>
                        <li class="nav-item d-flex navvan">
                            <a class="nav-link" href="#"><img src="assets/image/user1.svg" alt="" class="nvmenu"><a class="navtext">Профиль</a></a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>
    <div class="container bodyyy">
        <div class="row d-flex">
            <div class="col-3 catalogs">
                a
            </div>
            <div class="right col-9">
                <div class="sales-image">
                    <div class="swiperee swiperrr swix">
                        <div class="swiper-wrapper swipe-wrapx">
                            <div class="swiper-slide">
                                <div class="swipe-slix">
                                    <img class="swipe-sl" src="https://miro.medium.com/max/1400/1*BR2RiTRoYor9xSrzEgxLWQ.jpeg" alt="">
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="swipe-slix">
                                    <img class="swipe-sl" src="https://fireseo.ru/wp-content/uploads/2022/06/programming.jpeg" alt="">
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="swipe-slix">
                                    <img class="swipe-sl" src="https://img.freepik.com/free-vector/neon-lights-background-theme_52683-44625.jpg?w=2000" alt="">
                                </div>
                            </div>
                        </div>
                    </div>
 
                <div class="sales">
                    <h1 class="txt-sss txt-sss-h1">Текст заголовок</h1>
                    <h2 class="txt-sss txt-sss-h2">Заголовок</h2>
                    <div class="swiper mySwiper swi">
                        <div class="swiper-wrapper swipe-wrap">
                            <div class="swiper-slide">
                                <div class="swipe-sli">
                                    <img class="swipe-sli-img" src="https://miro.medium.com/max/1400/1*BR2RiTRoYor9xSrzEgxLWQ.jpeg" alt="">
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="swipe-sli">
                                    <img class="swipe-sli-img" src="https://fireseo.ru/wp-content/uploads/2022/06/programming.jpeg" alt="">
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="swipe-sli">
                                    <img class="swipe-sli-img" src="https://img.freepik.com/free-vector/neon-lights-background-theme_52683-44625.jpg?w=2000" alt="">
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="swipe-sli">
                                    <img class="swipe-sli-img" src="https://png.pngtree.com/thumb_back/fh260/background/20200714/pngtree-modern-double-color-futuristic-neon-background-image_351866.jpg" alt="">
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="swipe-sli">
                                    <img class="swipe-sli-img" src="https://img.freepik.com/premium-vector/minimalist-shape-background_112769-210.jpg" alt="">
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="swipe-sli">
                                    <img class="swipe-sli-img" src="https://img.freepik.com/premium-vector/minimalist-shape-background_112769-210.jpg" alt="">
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="swipe-sli">
                                    <img class="swipe-sli-img" src="https://img.freepik.com/premium-vector/minimalist-shape-background_112769-210.jpg" alt="">
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="swipe-sli">
                                    <img class="swipe-sli-img" src="https://img.freepik.com/premium-vector/minimalist-shape-background_112769-210.jpg" alt="">
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="swipe-sli">
                                    <img class="swipe-sli-img" src="https://img.freepik.com/premium-vector/minimalist-shape-background_112769-210.jpg" alt="">
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="swipe-sli">
                                    <img class="swipe-sli-img" src="https://img.freepik.com/premium-vector/minimalist-shape-background_112769-210.jpg" alt="">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="d-flex tag-swipe">
                        <h5 class="txt-sss txt-sss-h5">#тэги</h5>
                        <div class="d-flex pag-but-swipe">
                            <div class="swiper-prev"><img src="assets/image/next.svg" alt=""></div>
                            <div class="swipe-pagination "></div>
                            <div class="swiper-next"><img src="assets/image/prev.svg" alt=""></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="assets/bootstrap/js/bootstrap.js"></script>
    <script src="assets/js/js.js"></script>
</body>
</html>
JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const swiperee = new Swiper('.swiperrr', {
    mousewheel: false,
    slidesPerView: 1,
    navigation: {
        nextEl: '.swiper-button-next2',
        prevEl: '.swiper-button-prev2',
    },
});
 
const swiper = new Swiper('.mySwiper', {
    navigation: {
        nextEl: ".swiper-next",
        prevEl: ".swiper-prev",
    },
    pagination: {
        el: '.swipe-pagination',
        clickable: true,
        margin:9,
    },
    mousewheel: false,
    slidesPerView: 4.5,
    spaceBetween: 21,
    slidesPerGroup: 4,
});
Миниатюры
swiper slider  
0
cpp_developer
Эксперт
20123 / 5690 / 1417
Регистрация: 09.04.2010
Сообщений: 22,546
Блог
29.11.2022, 18:18
Ответы с готовыми решениями:

Кастомный Swiper
Всем привет, делаю кастомный Swiper, не могу понять почему не видно цифр фракции когда листаешь фото &lt;div...

Swiper - нужна консультация
Делаю слайдер. Нужно как во вложении + возможность увеличивать изображения. Делаю через Макет многострочных слайдов + нужна...

Slider
Ребята, помогите реализовать такой слайдер, нужно сделать по макету

0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
raxper
Эксперт
30234 / 6612 / 1498
Регистрация: 28.12.2010
Сообщений: 21,154
Блог
29.11.2022, 18:18
Помогаю со студенческими работами здесь

Orbit slider
Доброе время суток ув. форумцы. Возникла проблема которая уже как 6-й день не дает мне покоя, а конкретно: Какой бы я слайдер не ставил -...

Slick Slider centerMode
Всем доброго дня. Столкнулся с банальной проблемой - нужно отображать 2.5 слайда, а не 3. Естественно, центр едет в сторону. centerPadding...

Не адаптируется slick slider
Не могу понять как сделать адаптивным slick. Настройки: $(document).ready(function(){ $('.head-slider__slider').slick({ ...

Fade effect slider
Нужен слайдер как тут https://github.com/nolimits4web/Swiper/blob/master/demos/16-effect-fade.html Проблема: если нет background-image,...

Кастомизация Slick Slider
Всем привет! Коллеги, столкнулся с задачей создать слайдер, как на картинке. Текст центрального слайда должен появляться справа...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
1
Ответ Создать тему
Новые блоги и статьи
Загрузка PNG с альфа-каналом на SDL3 для Android: с помощью SDL_LoadPNG (без SDL3_image)
8Observer8 28.01.2026
Содержание блога SDL3 имеет собственные средства для загрузки и отображения PNG-файлов с альфа-каналом и базовой работы с ними. В этой инструкции используется функция SDL_LoadPNG(), которая. . .
Загрузка PNG с альфа-каналом на SDL3 для Android: с помощью SDL3_image
8Observer8 27.01.2026
Содержание блога SDL3_image - это библиотека для загрузки и работы с изображениями. Эта пошаговая инструкция покажет, как загрузить и вывести на экран смартфона картинку с альфа-каналом, то есть с. . .
влияние грибов на сукцессию
anaschu 26.01.2026
Бифуркационные изменения массы гриба происходят тогда, когда мы уменьшаем массу компоста в 10 раз, а скорость прироста биомассы уменьшаем в три раза. Скорость прироста биомассы может уменьшаться за. . .
Воспроизведение звукового файла с помощью SDL3_mixer при касании экрана Android
8Observer8 26.01.2026
Содержание блога SDL3_mixer - это библиотека я для воспроизведения аудио. В отличие от инструкции по добавлению текста код по проигрыванию звука уже содержится в шаблоне примера. Нужно только. . .
Установка Android SDK, NDK, JDK, CMake и т.д.
8Observer8 25.01.2026
Содержание блога Перейдите по ссылке: https:/ / developer. android. com/ studio и в самом низу страницы кликните по архиву "commandlinetools-win-xxxxxx_latest. zip" Извлеките архив и вы увидите. . .
Вывод текста со шрифтом TTF на Android с помощью библиотеки SDL3_ttf
8Observer8 25.01.2026
Содержание блога Если у вас не установлены Android SDK, NDK, JDK, и т. д. то сделайте это по следующей инструкции: Установка Android SDK, NDK, JDK, CMake и т. д. Сборка примера Скачайте. . .
Использование SDL3-callbacks вместо функции main() на Android, Desktop и WebAssembly
8Observer8 24.01.2026
Содержание блога Если вы откроете примеры для начинающих на официальном репозитории SDL3 в папке: examples, то вы увидите, что все примеры используют следующие четыре обязательные функции, а. . .
моя боль
iceja 24.01.2026
Выложила интерполяцию кубическими сплайнами www. iceja. net REST сервисы временно не работают, только через Web. Написала за 56 рабочих часов этот сайт с нуля. При помощи perplexity. ai PRO , при. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru