well-waterfall 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +316 -316
- package/dist/attributes.js +208 -208
- package/dist/attributes.js.map +1 -1
- package/dist/lib/attributes.d.ts +218 -218
- package/dist/lib/elements.d.ts +1 -1
- package/dist/well-waterfall.es.js +1679 -1679
- package/dist/well-waterfall.es.js.map +1 -1
- package/dist/well-waterfall.umd.js +2 -2
- package/dist/well-waterfall.umd.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,14 +9,14 @@ Waterfall is a free-forever JavaScript library for Webflow that lets you build [
|
|
|
9
9
|
3. **Full Documentation.** Every attribute is listed below, and each setting is explained directly in the Wellspring App.
|
|
10
10
|
4. **Turn Swipers into Components.** After creating a swiper, you can turn it into a Webflow component for reuse.
|
|
11
11
|
|
|
12
|
-
Current version: **v<!-- version -->1.
|
|
12
|
+
Current version: **v<!-- version -->1.7.0<!-- /version -->** · Bundled SwiperJS: **<!-- swiper-version -->14.4.0<!-- /swiper-version -->**
|
|
13
13
|
|
|
14
14
|
## Table of contents
|
|
15
15
|
|
|
16
16
|
- [Dependencies](#dependencies)
|
|
17
17
|
- [Installation](#installation)
|
|
18
18
|
- [Usage](#usage)
|
|
19
|
-
- [Waterfall Layout](#
|
|
19
|
+
- [Waterfall Layout](#wtf-layout)
|
|
20
20
|
- [How Attributes Work](#how-attributes-work)
|
|
21
21
|
- [Attribute Reference](#attribute-reference)
|
|
22
22
|
- [Core](#core)
|
|
@@ -66,7 +66,7 @@ Use the Wellspring App to install the code onto your site. If you are installing
|
|
|
66
66
|
**Specific Version (Stable - Recommended)**
|
|
67
67
|
|
|
68
68
|
```html
|
|
69
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/well-waterfall@1.
|
|
69
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/well-waterfall@1.7.0"></script>
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
**Latest Version**
|
|
@@ -99,11 +99,11 @@ Every setting is a plain HTML attribute, so you can also add them yourself in We
|
|
|
99
99
|
|
|
100
100
|
## Waterfall Layout
|
|
101
101
|
|
|
102
|
-
Waterfall uses the standard SwiperJS markup with an added wrapper element that carries the `
|
|
102
|
+
Waterfall uses the standard SwiperJS markup with an added wrapper element that carries the `wtf-instance` attribute. Each Waterfall is identified by `[wtf-instance="SWIPER_NAME"]`, where `SWIPER_NAME` is a unique string. The name is also used to link sliders together (thumbs, controller) and to target them from outside (slide manipulation).
|
|
103
103
|
|
|
104
104
|
```html
|
|
105
105
|
<!-- Waterfall wrapper: all settings attributes go here -->
|
|
106
|
-
<div
|
|
106
|
+
<div wtf-instance="SWIPER_NAME" wtf-slides-per-view="3" wtf-space-between="24">
|
|
107
107
|
<div class="swiper">
|
|
108
108
|
<div class="swiper-wrapper">
|
|
109
109
|
<div class="swiper-slide">Slide 1</div>
|
|
@@ -113,10 +113,10 @@ Waterfall uses the standard SwiperJS markup with an added wrapper element that c
|
|
|
113
113
|
</div>
|
|
114
114
|
|
|
115
115
|
<!-- Optional elements (anywhere inside the wrapper) -->
|
|
116
|
-
<div
|
|
117
|
-
<button
|
|
118
|
-
<button
|
|
119
|
-
<div
|
|
116
|
+
<div wtf-el="pagination"></div>
|
|
117
|
+
<button wtf-el="navigation-prev">Prev</button>
|
|
118
|
+
<button wtf-el="navigation-next">Next</button>
|
|
119
|
+
<div wtf-el="scrollbar"></div>
|
|
120
120
|
</div>
|
|
121
121
|
```
|
|
122
122
|
|
|
@@ -126,14 +126,14 @@ Waterfalls initialize on `DOMContentLoaded`.
|
|
|
126
126
|
|
|
127
127
|
## How Attributes Work
|
|
128
128
|
|
|
129
|
-
- **Placement.** Unless noted otherwise, attributes go on the `[
|
|
130
|
-
- **Naming.** Every attribute is `
|
|
129
|
+
- **Placement.** Unless noted otherwise, attributes go on the `[wtf-instance]` wrapper element.
|
|
130
|
+
- **Naming.** Every attribute is `wtf-` plus its SwiperJS parameter in kebab-case, with no exceptions. Example: `direction` → `wtf-direction`. Parameters inside an object always keep the group name: `freeMode.enabled` → `wtf-free-mode-enabled`, `coverflowEffect.depth` → `wtf-coverflow-effect-depth`, `autoplay.delay` → `wtf-autoplay-delay`. So if you know the Swiper parameter, you know the attribute. Attributes that have no Swiper equivalent (breakpoints, slide manipulation, callbacks, the autoplay control) are listed in their own sections below.
|
|
131
131
|
- **Value types.**
|
|
132
132
|
- `boolean`: the literal text `true` or `false`. Any other value is ignored.
|
|
133
133
|
- `number`: a plain number without units (`24`, not `24px`).
|
|
134
134
|
- `string`: text, used as-is (surrounding whitespace is trimmed).
|
|
135
135
|
- **Defaults.** Leaving an attribute out, or setting it to its default value, falls back to the SwiperJS default shown in the tables.
|
|
136
|
-
- **Debugging.** Add `
|
|
136
|
+
- **Debugging.** Add `wtf-debug-mode="true"` to log the generated Swiper config, the elements found, and linking details to the console.
|
|
137
137
|
|
|
138
138
|
The attribute names are also exported as constants from `src/lib/attributes.ts` and `src/lib/elements.ts`.
|
|
139
139
|
|
|
@@ -142,39 +142,39 @@ The attribute names are also exported as constants from `src/lib/attributes.ts`
|
|
|
142
142
|
### Core
|
|
143
143
|
|
|
144
144
|
<!-- reference:core:0 -->
|
|
145
|
-
| Attribute
|
|
146
|
-
|
|
|
147
|
-
| `
|
|
148
|
-
| `
|
|
149
|
-
| `
|
|
150
|
-
| `
|
|
145
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
146
|
+
| ------------------- | -------------- | ------- | ------------ | ----------------------------------------------------------------------------------------------------------------------- |
|
|
147
|
+
| `wtf-instance` | — | string | _(required)_ | Unique name for this slider. Marks the element as a Waterfall. |
|
|
148
|
+
| `wtf-debug-mode` | — | boolean | `false` | Logs the generated config and initialization details to the console. |
|
|
149
|
+
| `wtf-initial-slide` | `initialSlide` | number | `0` | Index of the slide to show first. |
|
|
150
|
+
| `wtf-nested` | `nested` | boolean | `false` | Set to `true` on a Swiper nested inside another Swiper with the same direction, so touch events are captured correctly. |
|
|
151
151
|
<!-- /reference:core:0 -->
|
|
152
152
|
|
|
153
153
|
### Layout
|
|
154
154
|
|
|
155
155
|
<!-- reference:layout:0 -->
|
|
156
|
-
| Attribute
|
|
157
|
-
|
|
|
158
|
-
| `
|
|
159
|
-
| `
|
|
160
|
-
| `
|
|
161
|
-
| `
|
|
162
|
-
| `
|
|
163
|
-
| `
|
|
164
|
-
| `
|
|
165
|
-
| `
|
|
166
|
-
| `
|
|
167
|
-
| `
|
|
168
|
-
| `
|
|
169
|
-
| `
|
|
170
|
-
| `
|
|
171
|
-
| `
|
|
172
|
-
| `
|
|
156
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
157
|
+
| -------------------------------- | -------------------------- | -------------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
158
|
+
| `wtf-direction` | `direction` | `horizontal` \| `vertical` | `horizontal` | Slide direction. |
|
|
159
|
+
| `wtf-slides-per-view` | `slidesPerView` | number \| `auto` | `1` | Number of slides visible at once. Decimals like `1.5` show partial slides; `auto` uses each slide's CSS width. |
|
|
160
|
+
| `wtf-slides-per-group` | `slidesPerGroup` | number | `1` | Number of slides to advance per navigation step. |
|
|
161
|
+
| `wtf-slides-per-group-skip` | `slidesPerGroupSkip` | number | `0` | Number of initial slides that advance one at a time before grouping starts. |
|
|
162
|
+
| `wtf-slides-per-group-auto` | `slidesPerGroupAuto` | boolean | `false` | With `slidesPerView: auto`, advances by the number of slides currently visible. |
|
|
163
|
+
| `wtf-space-between` | `spaceBetween` | number (px) | `0` | Gap between slides. |
|
|
164
|
+
| `wtf-centered-slides` | `centeredSlides` | boolean | `false` | Centers the active slide instead of aligning it to the left or top. |
|
|
165
|
+
| `wtf-center-insufficient-slides` | `centerInsufficientSlides` | boolean | `false` | Centers the slides when there are fewer than `slidesPerView`. |
|
|
166
|
+
| `wtf-normalize-slide-index` | `normalizeSlideIndex` | boolean | `true` | Normalizes the active slide index when using `slidesPerGroup`. |
|
|
167
|
+
| `wtf-auto-height` | `autoHeight` | boolean | `false` | Resizes the slider height to match the active slide. |
|
|
168
|
+
| `wtf-slides-offset-before` | `slidesOffsetBefore` | number (px) | `0` | Extra space before the first slide. |
|
|
169
|
+
| `wtf-slides-offset-after` | `slidesOffsetAfter` | number (px) | `0` | Extra space after the last slide. |
|
|
170
|
+
| `wtf-width` | `width` | number (px) | — | Forces a slider width. Useful only when the slider is hidden on init. |
|
|
171
|
+
| `wtf-height` | `height` | number (px) | — | Forces a slider height. Useful only when the slider is hidden on init. |
|
|
172
|
+
| `wtf-centered-slides-bounds` | `centeredSlidesBounds` | boolean | `false` | Centers the active slide without leaving gaps at the start and end. Requires `wtf-centered-slides="true"`; not intended for use with loop or pagination. |
|
|
173
173
|
<!-- /reference:layout:0 -->
|
|
174
174
|
|
|
175
175
|
### Responsive Breakpoints
|
|
176
176
|
|
|
177
|
-
Breakpoints match Webflow's breakpoints and cascade the same way Webflow styles do: outward from Desktop. A value set on Tablet also applies to Mobile Landscape and Mobile Portrait unless they override it, and a value set on Desktop also applies to 1280px and 1440px. Anywhere no breakpoint value applies, the base attribute (e.g. `
|
|
177
|
+
Breakpoints match Webflow's breakpoints and cascade the same way Webflow styles do: outward from Desktop. A value set on Tablet also applies to Mobile Landscape and Mobile Portrait unless they override it, and a value set on Desktop also applies to 1280px and 1440px. Anywhere no breakpoint value applies, the base attribute (e.g. `wtf-slides-per-view`) is used.
|
|
178
178
|
|
|
179
179
|
<!-- reference:responsive-breakpoints:0 -->
|
|
180
180
|
| Suffix | Webflow breakpoint | Applies to | Falls back to |
|
|
@@ -188,57 +188,57 @@ Breakpoints match Webflow's breakpoints and cascade the same way Webflow styles
|
|
|
188
188
|
<!-- /reference:responsive-breakpoints:0 -->
|
|
189
189
|
|
|
190
190
|
<!-- reference:responsive-breakpoints:1 -->
|
|
191
|
-
| Attribute pattern
|
|
192
|
-
|
|
|
193
|
-
| `
|
|
194
|
-
| `
|
|
195
|
-
| `
|
|
196
|
-
| `
|
|
197
|
-
| `
|
|
191
|
+
| Attribute pattern | Swiper option | Values | Description |
|
|
192
|
+
| ----------------------------------- | ----------------- | ----------------------- | ------------------------------------------------------------------------------------------------- |
|
|
193
|
+
| `wtf-slides-per-view-{breakpoint}` | `slidesPerView` | number | Slides visible at this breakpoint, or `auto`. |
|
|
194
|
+
| `wtf-slides-per-group-{breakpoint}` | `slidesPerGroup` | number | Slides advanced per step at this breakpoint. |
|
|
195
|
+
| `wtf-space-between-{breakpoint}` | `spaceBetween` | number (px) | Gap between slides at this breakpoint. |
|
|
196
|
+
| `wtf-centered-slides-{breakpoint}` | `centeredSlides` | boolean | Centers the active slide at this breakpoint. |
|
|
197
|
+
| `wtf-breakpoints-base` | `breakpointsBase` | `window` \| `container` | Measures breakpoints against the window width (default `window`) or the slider container's width. |
|
|
198
198
|
<!-- /reference:responsive-breakpoints:1 -->
|
|
199
199
|
|
|
200
|
-
Example: `
|
|
200
|
+
Example: `wtf-slides-per-view="3"` + `wtf-slides-per-view-tablet="2"` + `wtf-slides-per-view-mobile-large="1"` shows 3 slides on Desktop and up, 2 on Tablet, and 1 on both mobile breakpoints.
|
|
201
201
|
|
|
202
202
|
### Playback (Loop, Rewind, Speed)
|
|
203
203
|
|
|
204
204
|
<!-- reference:playback-loop-rewind-speed:0 -->
|
|
205
|
-
| Attribute
|
|
206
|
-
|
|
|
207
|
-
| `
|
|
208
|
-
| `
|
|
209
|
-
| `
|
|
210
|
-
| `
|
|
211
|
-
| `
|
|
212
|
-
| `
|
|
213
|
-
| `
|
|
205
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
206
|
+
| ---------------------------- | ---------------------- | ----------- | ------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
207
|
+
| `wtf-loop` | `loop` | boolean | `false` | Wraps around endlessly. Cannot be combined with `wtf-rewind`; if both are `true`, loop wins and a warning is logged. |
|
|
208
|
+
| `wtf-rewind` | `rewind` | boolean | `false` | Jumps back to the first slide after the last one. Cannot be combined with `wtf-loop`. |
|
|
209
|
+
| `wtf-speed` | `speed` | number (ms) | `300` | Transition duration between slides. |
|
|
210
|
+
| `wtf-loop-add-blank-slides` | `loopAddBlankSlides` | boolean | `true` | With loop and grid/`slidesPerGroup`, adds blank slides when the slide count isn't evenly divisible. |
|
|
211
|
+
| `wtf-loop-additional-slides` | `loopAdditionalSlides` | number | `0` | Extra slides to clone for looping. |
|
|
212
|
+
| `wtf-loop-prevents-sliding` | `loopPreventsSliding` | boolean | `true` | Blocks navigation while the loop is repositioning slides. |
|
|
213
|
+
| `wtf-one-way-movement` | `oneWayMovement` | boolean | `false` | Swiping in either direction advances to the next slide. |
|
|
214
214
|
<!-- /reference:playback-loop-rewind-speed:0 -->
|
|
215
215
|
|
|
216
216
|
### Autoplay
|
|
217
217
|
|
|
218
218
|
<!-- reference:autoplay:0 -->
|
|
219
|
-
| Attribute
|
|
220
|
-
|
|
|
221
|
-
| `
|
|
222
|
-
| `
|
|
223
|
-
| `
|
|
224
|
-
| `
|
|
225
|
-
| `
|
|
226
|
-
| `
|
|
227
|
-
| `
|
|
228
|
-
| `
|
|
219
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
220
|
+
| ------------------------------------- | ------------------------------- | ----------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
221
|
+
| `wtf-autoplay` | `autoplay` | boolean | `false` | Turns autoplay on. The other autoplay attributes apply only when this is `true`. |
|
|
222
|
+
| `wtf-autoplay-delay` | `autoplay.delay` | number (ms) | `3000` | Time between transitions. |
|
|
223
|
+
| `wtf-smooth-autoplay` | — | boolean | `false` | Continuous "marquee" scrolling: sets the delay to `0` and applies linear easing to `.swiper-wrapper`. Pair it with a high `wtf-speed` (e.g. `5000`). |
|
|
224
|
+
| `wtf-autoplay-disable-on-interaction` | `autoplay.disableOnInteraction` | boolean | `false` | Stops autoplay permanently after the user interacts with the slider. |
|
|
225
|
+
| `wtf-autoplay-pause-on-mouse-enter` | `autoplay.pauseOnMouseEnter` | boolean | `false` | Pauses while the pointer is over the slider. With `wtf-smooth-autoplay`, the marquee freezes where it stands and picks the slide back up on the way out. |
|
|
226
|
+
| `wtf-autoplay-reverse-direction` | `autoplay.reverseDirection` | boolean | `false` | Autoplays backwards. |
|
|
227
|
+
| `wtf-autoplay-stop-on-last-slide` | `autoplay.stopOnLastSlide` | boolean | `false` | Stops on the last slide. Has no effect in loop mode. |
|
|
228
|
+
| `wtf-autoplay-wait-for-transition` | `autoplay.waitForTransition` | boolean | `true` | Waits for the slide transition to finish before the next autoplay step. Turn off when using `wtf-virtual-translate`. |
|
|
229
229
|
<!-- /reference:autoplay:0 -->
|
|
230
230
|
|
|
231
231
|
### Autoplay Control Button
|
|
232
232
|
|
|
233
|
-
A play/pause toggle for autoplaying sliders. It needs `
|
|
233
|
+
A play/pause toggle for autoplaying sliders. It needs `wtf-autoplay="true"` and all three [elements](#element-reference) (`autoplay-control`, `autoplay-control-play`, `autoplay-control-pause`) inside the wrapper — build those and the button works, with no attribute to switch on. The button shows the pause icon while playing and the play icon while paused.
|
|
234
234
|
|
|
235
235
|
If any one of the three elements is missing, the control does nothing at all, so check for all three before anything else when a button looks dead.
|
|
236
236
|
|
|
237
237
|
<!-- reference:autoplay-control-button:0 -->
|
|
238
|
-
| Attribute
|
|
239
|
-
|
|
|
240
|
-
| `
|
|
241
|
-
| `
|
|
238
|
+
| Attribute | Values | Default | Description |
|
|
239
|
+
| ------------------------------------ | --------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
240
|
+
| `wtf-autoplay-control-enabled` | boolean | `true` | The play/pause button. On by default whenever autoplay is on and the three `wtf-el` control elements are present; set to `false` to turn it off. |
|
|
241
|
+
| `wtf-autoplay-control-default-state` | `playing` \| `paused` | `playing` | Whether autoplay starts running or paused on page load. |
|
|
242
242
|
<!-- /reference:autoplay-control-button:0 -->
|
|
243
243
|
|
|
244
244
|
### Navigation
|
|
@@ -246,16 +246,16 @@ If any one of the three elements is missing, the control does nothing at all, so
|
|
|
246
246
|
Navigation turns on automatically when a `navigation-next` or `navigation-prev` [element](#element-reference) is found inside the wrapper.
|
|
247
247
|
|
|
248
248
|
<!-- reference:navigation:0 -->
|
|
249
|
-
| Attribute
|
|
250
|
-
|
|
|
251
|
-
| `
|
|
252
|
-
| `
|
|
253
|
-
| `
|
|
254
|
-
| `
|
|
255
|
-
| `
|
|
256
|
-
| `
|
|
257
|
-
| `
|
|
258
|
-
| `
|
|
249
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
250
|
+
| ------------------------------------------ | ------------------------------------ | ------- | ---------------------------- | ----------------------------------------------------------------- |
|
|
251
|
+
| `wtf-navigation-enabled` | `navigation.enabled` | boolean | _(auto)_ | Set to `false` to turn navigation off even when buttons exist. |
|
|
252
|
+
| `wtf-navigation-hide-on-click` | `navigation.hideOnClick` | boolean | `false` | Toggles button visibility when the slider is clicked. |
|
|
253
|
+
| `wtf-allow-slide-next` | `allowSlideNext` | boolean | `true` | Set to `false` to block sliding forward. |
|
|
254
|
+
| `wtf-allow-slide-prev` | `allowSlidePrev` | boolean | `true` | Set to `false` to block sliding backward. |
|
|
255
|
+
| `wtf-navigation-disabled-class` | `navigation.disabledClass` | string | `swiper-button-disabled` | Class added to a button when it can't be used (first/last slide). |
|
|
256
|
+
| `wtf-navigation-hidden-class` | `navigation.hiddenClass` | string | `swiper-button-hidden` | Class added to hidden buttons. |
|
|
257
|
+
| `wtf-navigation-lock-class` | `navigation.lockClass` | string | `swiper-button-lock` | Class added when navigation is locked (not enough slides). |
|
|
258
|
+
| `wtf-navigation-navigation-disabled-class` | `navigation.navigationDisabledClass` | string | `swiper-navigation-disabled` | Class added to the container when navigation is disabled. |
|
|
259
259
|
<!-- /reference:navigation:0 -->
|
|
260
260
|
|
|
261
261
|
### Pagination
|
|
@@ -265,26 +265,26 @@ Pagination turns on when a `pagination` [element](#element-reference) is found i
|
|
|
265
265
|
These elements are the only way to set those classes — style them in the Designer and the bullets follow. There is no attribute that overrides them.
|
|
266
266
|
|
|
267
267
|
<!-- reference:pagination:0 -->
|
|
268
|
-
| Attribute
|
|
269
|
-
|
|
|
270
|
-
| `
|
|
271
|
-
| `
|
|
272
|
-
| `
|
|
273
|
-
| `
|
|
274
|
-
| `
|
|
275
|
-
| `
|
|
276
|
-
| `
|
|
277
|
-
| `
|
|
278
|
-
| `
|
|
279
|
-
| `
|
|
280
|
-
| `
|
|
281
|
-
| `
|
|
282
|
-
| `
|
|
283
|
-
| `
|
|
284
|
-
| `
|
|
285
|
-
| `
|
|
286
|
-
| `
|
|
287
|
-
| `
|
|
268
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
269
|
+
| ------------------------------------------- | ------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
270
|
+
| `wtf-pagination-type` | `pagination.type` | `bullets` \| `numberBullets` \| `fraction` \| `progressbar` \| `custom` | `bullets` | Pagination style. `numberBullets` shows bullets containing the slide number. |
|
|
271
|
+
| `wtf-pagination-enabled` | `pagination.enabled` | boolean | _(auto)_ | Set to `false` to turn pagination off even when the element exists. |
|
|
272
|
+
| `wtf-pagination-clickable` | `pagination.clickable` | boolean | `false` | Clicking a bullet goes to that slide. |
|
|
273
|
+
| `wtf-pagination-dynamic-bullets` | `pagination.dynamicBullets` | boolean | `false` | Shows only a few bullets at a time; useful with many slides. |
|
|
274
|
+
| `wtf-pagination-dynamic-main-bullets` | `pagination.dynamicMainBullets` | number | `1` | Number of main bullets shown with dynamic bullets. |
|
|
275
|
+
| `wtf-pagination-hide-on-click` | `pagination.hideOnClick` | boolean | `false` | Toggles pagination visibility when the slider is clicked. |
|
|
276
|
+
| `wtf-pagination-progressbar-opposite` | `pagination.progressbarOpposite` | boolean | `false` | Draws the progress bar in the opposite direction to the slider (e.g. vertical on a horizontal slider). |
|
|
277
|
+
| `wtf-pagination-clickable-class` | `pagination.clickableClass` | string | `swiper-pagination-clickable` | Class added when pagination is clickable. |
|
|
278
|
+
| `wtf-pagination-current-class` | `pagination.currentClass` | string | `swiper-pagination-current` | Class on the current number in `fraction` pagination. |
|
|
279
|
+
| `wtf-pagination-total-class` | `pagination.totalClass` | string | `swiper-pagination-total` | Class on the total number in `fraction` pagination. |
|
|
280
|
+
| `wtf-pagination-hidden-class` | `pagination.hiddenClass` | string | `swiper-pagination-hidden` | Class added when pagination is hidden. |
|
|
281
|
+
| `wtf-pagination-horizontal-class` | `pagination.horizontalClass` | string | `swiper-pagination-horizontal` | Class added for horizontal sliders. |
|
|
282
|
+
| `wtf-pagination-vertical-class` | `pagination.verticalClass` | string | `swiper-pagination-vertical` | Class added for vertical sliders. |
|
|
283
|
+
| `wtf-pagination-lock-class` | `pagination.lockClass` | string | `swiper-pagination-lock` | Class added when pagination is locked (not enough slides). |
|
|
284
|
+
| `wtf-pagination-modifier-class` | `pagination.modifierClass` | string | `swiper-pagination-` | Prefix for the type modifier class (e.g. `swiper-pagination-bullets`). |
|
|
285
|
+
| `wtf-pagination-pagination-disabled-class` | `pagination.paginationDisabledClass` | string | `swiper-pagination-disabled` | Class added when pagination is disabled. |
|
|
286
|
+
| `wtf-pagination-progressbar-fill-class` | `pagination.progressbarFillClass` | string | `swiper-pagination-progressbar-fill` | Class on the progress bar fill. |
|
|
287
|
+
| `wtf-pagination-progressbar-opposite-class` | `pagination.progressbarOppositeClass` | string | `swiper-pagination-progressbar-opposite` | Class added with an opposite progress bar. |
|
|
288
288
|
<!-- /reference:pagination:0 -->
|
|
289
289
|
|
|
290
290
|
### Scrollbar
|
|
@@ -292,189 +292,189 @@ These elements are the only way to set those classes — style them in the Desig
|
|
|
292
292
|
The scrollbar turns on when a `scrollbar` [element](#element-reference) is found inside the wrapper. Add a `scrollbar-drag` element inside the track and Swiper uses that element as the handle, so whatever you style in the Designer is what moves. Without one, Swiper builds a plain handle of its own. The element is the only way to set the handle class — there is no attribute that overrides it.
|
|
293
293
|
|
|
294
294
|
<!-- reference:scrollbar:0 -->
|
|
295
|
-
| Attribute
|
|
296
|
-
|
|
|
297
|
-
| `
|
|
298
|
-
| `
|
|
299
|
-
| `
|
|
300
|
-
| `
|
|
301
|
-
| `
|
|
302
|
-
| `
|
|
303
|
-
| `
|
|
304
|
-
| `
|
|
305
|
-
| `
|
|
295
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
296
|
+
| ---------------------------------------- | ---------------------------------- | --------------------- | ----------------------------- | ---------------------------------------------------------------------- |
|
|
297
|
+
| `wtf-scrollbar-enabled` | `scrollbar.enabled` | boolean | _(auto)_ | Set to `false` to turn the scrollbar off even when the element exists. |
|
|
298
|
+
| `wtf-scrollbar-draggable` | `scrollbar.draggable` | boolean | `false` | Lets the user drag the scrollbar handle. |
|
|
299
|
+
| `wtf-scrollbar-hide` | `scrollbar.hide` | boolean | `false` | Hides the scrollbar after the user stops interacting. |
|
|
300
|
+
| `wtf-scrollbar-snap-on-release` | `scrollbar.snapOnRelease` | boolean | `true` | Snaps to the nearest slide when the handle is released. |
|
|
301
|
+
| `wtf-scrollbar-drag-size` | `scrollbar.dragSize` | number (px) \| `auto` | `auto` | Size of the drag handle. |
|
|
302
|
+
| `wtf-scrollbar-horizontal-class` | `scrollbar.horizontalClass` | string | `swiper-scrollbar-horizontal` | Class added for horizontal sliders. |
|
|
303
|
+
| `wtf-scrollbar-vertical-class` | `scrollbar.verticalClass` | string | `swiper-scrollbar-vertical` | Class added for vertical sliders. |
|
|
304
|
+
| `wtf-scrollbar-lock-class` | `scrollbar.lockClass` | string | `swiper-scrollbar-lock` | Class added when the scrollbar is locked (not enough slides). |
|
|
305
|
+
| `wtf-scrollbar-scrollbar-disabled-class` | `scrollbar.scrollbarDisabledClass` | string | `swiper-scrollbar-disabled` | Class added when the scrollbar is disabled. |
|
|
306
306
|
<!-- /reference:scrollbar:0 -->
|
|
307
307
|
|
|
308
308
|
### Effects
|
|
309
309
|
|
|
310
310
|
<!-- reference:effects:0 -->
|
|
311
|
-
| Attribute
|
|
312
|
-
|
|
|
313
|
-
| `
|
|
314
|
-
| `
|
|
311
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
312
|
+
| ---------------------- | ----------------- | --------------------------------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
313
|
+
| `wtf-effect` | `effect` | `slide` \| `fade` \| `cube` \| `coverflow` \| `flip` \| `cards` | `slide` | Transition effect. Tune `fade` with `wtf-fade-effect-mode`. |
|
|
314
|
+
| `wtf-fade-effect-mode` | `fadeEffect.mode` | `default` \| `cross-fade` \| `out-in` | `default` | How the `fade` effect transitions. `default` fades the outgoing slide over the incoming one, `cross-fade` fades both at once, `out-in` fades out fully before fading in. |
|
|
315
315
|
<!-- /reference:effects:0 -->
|
|
316
316
|
|
|
317
317
|
The settings below apply only when the matching effect is selected.
|
|
318
318
|
|
|
319
|
-
**Coverflow** (`
|
|
319
|
+
**Coverflow** (`wtf-effect="coverflow"`)
|
|
320
320
|
|
|
321
321
|
<!-- reference:effects:1 -->
|
|
322
|
-
| Attribute
|
|
323
|
-
|
|
|
324
|
-
| `
|
|
325
|
-
| `
|
|
326
|
-
| `
|
|
327
|
-
| `
|
|
328
|
-
| `
|
|
329
|
-
| `
|
|
322
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
323
|
+
| ------------------------------------ | ------------------------------ | ------------ | ------- | ------------------------------------------------- |
|
|
324
|
+
| `wtf-coverflow-effect-rotate` | `coverflowEffect.rotate` | number (deg) | `50` | Rotation of the side slides. |
|
|
325
|
+
| `wtf-coverflow-effect-stretch` | `coverflowEffect.stretch` | number (px) | `0` | Space between slides. |
|
|
326
|
+
| `wtf-coverflow-effect-depth` | `coverflowEffect.depth` | number (px) | `100` | Depth offset (Z translation). |
|
|
327
|
+
| `wtf-coverflow-effect-scale` | `coverflowEffect.scale` | number | `1` | Scale of the side slides. |
|
|
328
|
+
| `wtf-coverflow-effect-modifier` | `coverflowEffect.modifier` | number | `1` | Multiplier applied to rotate, depth, and stretch. |
|
|
329
|
+
| `wtf-coverflow-effect-slide-shadows` | `coverflowEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
|
|
330
330
|
<!-- /reference:effects:1 -->
|
|
331
331
|
|
|
332
|
-
**Cube** (`
|
|
332
|
+
**Cube** (`wtf-effect="cube"`)
|
|
333
333
|
|
|
334
334
|
<!-- reference:effects:2 -->
|
|
335
|
-
| Attribute
|
|
336
|
-
|
|
|
337
|
-
| `
|
|
338
|
-
| `
|
|
339
|
-
| `
|
|
340
|
-
| `
|
|
335
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
336
|
+
| ------------------------------- | ------------------------- | ----------- | ------- | ------------------------------------- |
|
|
337
|
+
| `wtf-cube-effect-shadow` | `cubeEffect.shadow` | boolean | `true` | Shows the main shadow under the cube. |
|
|
338
|
+
| `wtf-cube-effect-shadow-offset` | `cubeEffect.shadowOffset` | number (px) | `20` | Offset of the main shadow. |
|
|
339
|
+
| `wtf-cube-effect-shadow-scale` | `cubeEffect.shadowScale` | number | `0.94` | Scale of the main shadow. |
|
|
340
|
+
| `wtf-cube-effect-slide-shadows` | `cubeEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
|
|
341
341
|
<!-- /reference:effects:2 -->
|
|
342
342
|
|
|
343
|
-
**Flip** (`
|
|
343
|
+
**Flip** (`wtf-effect="flip"`)
|
|
344
344
|
|
|
345
345
|
<!-- reference:effects:3 -->
|
|
346
|
-
| Attribute
|
|
347
|
-
|
|
|
348
|
-
| `
|
|
349
|
-
| `
|
|
346
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
347
|
+
| -------------------------------- | -------------------------- | ------- | ------- | --------------------------------------- |
|
|
348
|
+
| `wtf-flip-effect-limit-rotation` | `flipEffect.limitRotation` | boolean | `true` | Limits the rotation of the edge slides. |
|
|
349
|
+
| `wtf-flip-effect-slide-shadows` | `flipEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
|
|
350
350
|
<!-- /reference:effects:3 -->
|
|
351
351
|
|
|
352
|
-
**Cards** (`
|
|
352
|
+
**Cards** (`wtf-effect="cards"`)
|
|
353
353
|
|
|
354
354
|
<!-- reference:effects:4 -->
|
|
355
|
-
| Attribute
|
|
356
|
-
|
|
|
357
|
-
| `
|
|
358
|
-
| `
|
|
359
|
-
| `
|
|
360
|
-
| `
|
|
355
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
356
|
+
| ----------------------------------- | ---------------------------- | ------------ | ------- | ------------------------------ |
|
|
357
|
+
| `wtf-cards-effect-per-slide-offset` | `cardsEffect.perSlideOffset` | number (px) | `8` | Offset between stacked cards. |
|
|
358
|
+
| `wtf-cards-effect-per-slide-rotate` | `cardsEffect.perSlideRotate` | number (deg) | `2` | Rotation of each stacked card. |
|
|
359
|
+
| `wtf-cards-effect-rotate` | `cardsEffect.rotate` | boolean | `true` | Rotates the cards. |
|
|
360
|
+
| `wtf-cards-effect-slide-shadows` | `cardsEffect.slideShadows` | boolean | `true` | Shows shadows on the cards. |
|
|
361
361
|
<!-- /reference:effects:4 -->
|
|
362
362
|
|
|
363
363
|
### Free Mode
|
|
364
364
|
|
|
365
365
|
<!-- reference:free-mode:0 -->
|
|
366
|
-
| Attribute
|
|
367
|
-
|
|
|
368
|
-
| `
|
|
369
|
-
| `
|
|
370
|
-
| `
|
|
371
|
-
| `
|
|
372
|
-
| `
|
|
373
|
-
| `
|
|
374
|
-
| `
|
|
375
|
-
| `
|
|
366
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
367
|
+
| --------------------------------------- | -------------------------------- | ------- | ------- | -------------------------------------------------------- |
|
|
368
|
+
| `wtf-free-mode-enabled` | `freeMode.enabled` | boolean | `false` | Slides move freely without snapping to positions. |
|
|
369
|
+
| `wtf-free-mode-sticky` | `freeMode.sticky` | boolean | `false` | Snaps to the nearest slide once the momentum ends. |
|
|
370
|
+
| `wtf-free-mode-momentum` | `freeMode.momentum` | boolean | `true` | Slides keep moving after release. |
|
|
371
|
+
| `wtf-free-mode-momentum-ratio` | `freeMode.momentumRatio` | number | `1` | Higher values increase the momentum distance. |
|
|
372
|
+
| `wtf-free-mode-momentum-velocity-ratio` | `freeMode.momentumVelocityRatio` | number | `1` | Higher values increase the momentum speed. |
|
|
373
|
+
| `wtf-free-mode-momentum-bounce` | `freeMode.momentumBounce` | boolean | `true` | Bounces at the edges after momentum. |
|
|
374
|
+
| `wtf-free-mode-momentum-bounce-ratio` | `freeMode.momentumBounceRatio` | number | `1` | Higher values increase the bounce effect. |
|
|
375
|
+
| `wtf-free-mode-minimum-velocity` | `freeMode.minimumVelocity` | number | `0.02` | Minimum touchmove velocity required to trigger momentum. |
|
|
376
376
|
<!-- /reference:free-mode:0 -->
|
|
377
377
|
|
|
378
378
|
### Grid
|
|
379
379
|
|
|
380
380
|
<!-- reference:grid:0 -->
|
|
381
|
-
| Attribute
|
|
382
|
-
|
|
|
383
|
-
| `
|
|
384
|
-
| `
|
|
381
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
382
|
+
| --------------- | ------------- | ----------------- | -------- | --------------------------------------------------- |
|
|
383
|
+
| `wtf-grid-rows` | `grid.rows` | number | `1` | Number of slide rows. Works best without loop mode. |
|
|
384
|
+
| `wtf-grid-fill` | `grid.fill` | `row` \| `column` | `column` | Whether slides fill the grid by row or by column. |
|
|
385
385
|
<!-- /reference:grid:0 -->
|
|
386
386
|
|
|
387
387
|
### Thumbs
|
|
388
388
|
|
|
389
|
-
Links a main slider to a separate thumbnail slider. Add the attributes to the **main** slider; the value of `
|
|
389
|
+
Links a main slider to a separate thumbnail slider. Add the attributes to the **main** slider; the value of `wtf-thumbs-swiper` is the name of the thumbnail Waterfall. Waterfall initializes the thumbnail slider first, so the order of the sliders on the page doesn't matter.
|
|
390
390
|
|
|
391
391
|
```html
|
|
392
|
-
<div
|
|
393
|
-
<div
|
|
392
|
+
<div wtf-instance="gallery" wtf-thumbs-swiper="gallery-thumbs">…</div>
|
|
393
|
+
<div wtf-instance="gallery-thumbs" wtf-slides-per-view="4" wtf-watch-slides-progress="true">…</div>
|
|
394
394
|
```
|
|
395
395
|
|
|
396
396
|
<!-- reference:thumbs:0 -->
|
|
397
|
-
| Attribute
|
|
398
|
-
|
|
|
399
|
-
| `
|
|
400
|
-
| `
|
|
401
|
-
| `
|
|
402
|
-
| `
|
|
403
|
-
| `
|
|
397
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
398
|
+
| ------------------------------------- | ------------------------------ | -------------- | --------------------------- | -------------------------------------------------------------------------------------------- |
|
|
399
|
+
| `wtf-thumbs-swiper` | `thumbs.swiper` | Waterfall name | — | Name of the thumbnail slider to link. |
|
|
400
|
+
| `wtf-thumbs-auto-scroll-offset` | `thumbs.autoScrollOffset` | number | `0` | Offset from the edge at which the thumbnail slider scrolls to keep the active thumb visible. |
|
|
401
|
+
| `wtf-thumbs-multiple-active-thumbs` | `thumbs.multipleActiveThumbs` | boolean | `true` | With multiple slides per view, highlights every thumb that is visible in the main slider. |
|
|
402
|
+
| `wtf-thumbs-slide-thumb-active-class` | `thumbs.slideThumbActiveClass` | string | `swiper-slide-thumb-active` | Class added to the active thumbnail. |
|
|
403
|
+
| `wtf-thumbs-thumbs-container-class` | `thumbs.thumbsContainerClass` | string | `swiper-thumbs` | Class added to the thumbnail slider container. |
|
|
404
404
|
<!-- /reference:thumbs:0 -->
|
|
405
405
|
|
|
406
406
|
### Controller
|
|
407
407
|
|
|
408
|
-
Makes one slider drive another. The value of `
|
|
408
|
+
Makes one slider drive another. The value of `wtf-controller-control` is the name of the Waterfall to control. The controlled slider is initialized first. For two-way sync, add `wtf-controller-control` to both sliders.
|
|
409
409
|
|
|
410
410
|
<!-- reference:controller:0 -->
|
|
411
|
-
| Attribute
|
|
412
|
-
|
|
|
413
|
-
| `
|
|
414
|
-
| `
|
|
415
|
-
| `
|
|
411
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
412
|
+
| ------------------------ | -------------------- | ---------------------- | ------- | -------------------------------------------------------------------------------- |
|
|
413
|
+
| `wtf-controller-control` | `controller.control` | Waterfall name | — | Name of the slider to control. |
|
|
414
|
+
| `wtf-controller-by` | `controller.by` | `slide` \| `container` | `slide` | Syncs by slide index (`slide`) or by proportional scroll position (`container`). |
|
|
415
|
+
| `wtf-controller-inverse` | `controller.inverse` | boolean | `false` | Moves the controlled slider in the opposite direction. |
|
|
416
416
|
<!-- /reference:controller:0 -->
|
|
417
417
|
|
|
418
418
|
### Touch & Swiping
|
|
419
419
|
|
|
420
420
|
<!-- reference:touch-swiping:0 -->
|
|
421
|
-
| Attribute
|
|
422
|
-
|
|
|
423
|
-
| `
|
|
424
|
-
| `
|
|
425
|
-
| `
|
|
426
|
-
| `
|
|
427
|
-
| `
|
|
428
|
-
| `
|
|
429
|
-
| `
|
|
430
|
-
| `
|
|
431
|
-
| `
|
|
432
|
-
| `
|
|
433
|
-
| `
|
|
434
|
-
| `
|
|
435
|
-
| `
|
|
436
|
-
| `
|
|
437
|
-
| `
|
|
438
|
-
| `
|
|
439
|
-
| `
|
|
440
|
-
| `
|
|
441
|
-
| `
|
|
442
|
-
| `
|
|
443
|
-
| `
|
|
444
|
-
| `
|
|
445
|
-
| `
|
|
446
|
-
| `
|
|
447
|
-
| `
|
|
448
|
-
| `
|
|
449
|
-
| `
|
|
450
|
-
| `
|
|
451
|
-
| `
|
|
421
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
422
|
+
| --------------------------------------- | -------------------------------- | ------------------------ | ------------------------------------------------------- | --------------------------------------------------------------------------------- |
|
|
423
|
+
| `wtf-allow-touch-move` | `allowTouchMove` | boolean | `true` | Set to `false` to turn off swiping; only navigation and pagination remain. |
|
|
424
|
+
| `wtf-simulate-touch` | `simulateTouch` | boolean | `true` | Lets desktop users drag slides with the mouse. |
|
|
425
|
+
| `wtf-grab-cursor` | `grabCursor` | boolean | `false` | Shows a "grab" cursor on hover. |
|
|
426
|
+
| `wtf-follow-finger` | `followFinger` | boolean | `true` | Slides follow the finger during a swipe. When `false`, they move only on release. |
|
|
427
|
+
| `wtf-slide-to-clicked-slide` | `slideToClickedSlide` | boolean | `false` | Clicking a slide transitions to it. |
|
|
428
|
+
| `wtf-threshold` | `threshold` | number (px) | `5` | Minimum drag distance before a swipe starts. |
|
|
429
|
+
| `wtf-touch-ratio` | `touchRatio` | number | `1` | Touch sensitivity multiplier. |
|
|
430
|
+
| `wtf-touch-angle` | `touchAngle` | number (deg) | `45` | Maximum angle at which a touch counts as a swipe. |
|
|
431
|
+
| `wtf-short-swipes` | `shortSwipes` | boolean | `true` | Allows quick, short swipes to change slides. |
|
|
432
|
+
| `wtf-long-swipes` | `longSwipes` | boolean | `true` | Allows long swipes to change slides. |
|
|
433
|
+
| `wtf-long-swipes-ms` | `longSwipesMs` | number (ms) | `300` | Minimum duration for a long swipe. |
|
|
434
|
+
| `wtf-long-swipes-ratio` | `longSwipesRatio` | number | `0.5` | Fraction of the slide width a long swipe must cover to change slides. |
|
|
435
|
+
| `wtf-resistance` | `resistance` | boolean | `true` | Adds rubber-band resistance at the edges. |
|
|
436
|
+
| `wtf-resistance-ratio` | `resistanceRatio` | number | `0.85` | Strength of edge resistance. |
|
|
437
|
+
| `wtf-edge-swipe-detection` | `edgeSwipeDetection` | boolean | `false` | Releases touches near the screen edge so the browser's back/forward swipe works. |
|
|
438
|
+
| `wtf-edge-swipe-threshold` | `edgeSwipeThreshold` | number (px) | `20` | Width of the edge area used for edge swipe detection. |
|
|
439
|
+
| `wtf-touch-events-target` | `touchEventsTarget` | `wrapper` \| `container` | `wrapper` | Element that listens for touch events. |
|
|
440
|
+
| `wtf-touch-move-stop-propagation` | `touchMoveStopPropagation` | boolean | `false` | Stops `touchmove` events from propagating. |
|
|
441
|
+
| `wtf-touch-release-on-edges` | `touchReleaseOnEdges` | boolean | `false` | Releases touch events at the slider edges so the page can scroll. |
|
|
442
|
+
| `wtf-touch-start-prevent-default` | `touchStartPreventDefault` | boolean | `true` | Prevents default on `pointerdown` (blocks text selection while dragging). |
|
|
443
|
+
| `wtf-touch-start-force-prevent-default` | `touchStartForcePreventDefault` | boolean | `false` | Always prevents default on `touchstart`. |
|
|
444
|
+
| `wtf-prevent-clicks` | `preventClicks` | boolean | `true` | Prevents accidental link clicks while swiping. |
|
|
445
|
+
| `wtf-prevent-clicks-propagation` | `preventClicksPropagation` | boolean | `true` | Stops click events from propagating while swiping. |
|
|
446
|
+
| `wtf-prevent-interaction-on-transition` | `preventInteractionOnTransition` | boolean | `false` | Blocks interaction while a transition is running. |
|
|
447
|
+
| `wtf-no-swiping` | `noSwiping` | boolean | `true` | Turns on swipe blocking for elements matching the no-swiping class or selector. |
|
|
448
|
+
| `wtf-no-swiping-class` | `noSwipingClass` | string | `swiper-no-swiping` | Swiping is blocked on elements with this class. |
|
|
449
|
+
| `wtf-no-swiping-selector` | `noSwipingSelector` | CSS selector | — | Swiping is blocked on elements matching this selector (overrides the class). |
|
|
450
|
+
| `wtf-focusable-elements` | `focusableElements` | CSS selector | `input, select, option, textarea, button, video, label` | Elements that keep native focus behavior instead of starting a swipe. |
|
|
451
|
+
| `wtf-swipe-handler` | `swipeHandler` | CSS selector | — | Restricts swiping to this handle element. |
|
|
452
452
|
<!-- /reference:touch-swiping:0 -->
|
|
453
453
|
|
|
454
454
|
### Keyboard Control
|
|
455
455
|
|
|
456
456
|
<!-- reference:keyboard-control:0 -->
|
|
457
|
-
| Attribute
|
|
458
|
-
|
|
|
459
|
-
| `
|
|
460
|
-
| `
|
|
461
|
-
| `
|
|
457
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
458
|
+
| ------------------------------- | ------------------------- | ------- | ------- | ---------------------------------------------------------- |
|
|
459
|
+
| `wtf-keyboard-enabled` | `keyboard.enabled` | boolean | `false` | Arrow keys control the slider. |
|
|
460
|
+
| `wtf-keyboard-only-in-viewport` | `keyboard.onlyInViewport` | boolean | `true` | Responds to keys only while the slider is in the viewport. |
|
|
461
|
+
| `wtf-keyboard-page-up-down` | `keyboard.pageUpDown` | boolean | `true` | Page Up / Page Down also navigate. |
|
|
462
462
|
<!-- /reference:keyboard-control:0 -->
|
|
463
463
|
|
|
464
464
|
### Mousewheel Control
|
|
465
465
|
|
|
466
466
|
<!-- reference:mousewheel-control:0 -->
|
|
467
|
-
| Attribute
|
|
468
|
-
|
|
|
469
|
-
| `
|
|
470
|
-
| `
|
|
471
|
-
| `
|
|
472
|
-
| `
|
|
473
|
-
| `
|
|
474
|
-
| `
|
|
475
|
-
| `
|
|
476
|
-
| `
|
|
477
|
-
| `
|
|
467
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
468
|
+
| ------------------------------------ | ------------------------------ | ---------------------------------------- | ---------------------- | --------------------------------------------------------------------- |
|
|
469
|
+
| `wtf-mousewheel-enabled` | `mousewheel.enabled` | boolean | `false` | The mouse wheel controls the slider. |
|
|
470
|
+
| `wtf-mousewheel-force-to-axis` | `mousewheel.forceToAxis` | boolean | `false` | Only responds to wheel movement along the slider's direction. |
|
|
471
|
+
| `wtf-mousewheel-invert` | `mousewheel.invert` | boolean | `false` | Inverts the scroll direction. |
|
|
472
|
+
| `wtf-mousewheel-release-on-edges` | `mousewheel.releaseOnEdges` | boolean | `false` | Lets the page scroll once the slider reaches its first or last slide. |
|
|
473
|
+
| `wtf-mousewheel-sensitivity` | `mousewheel.sensitivity` | number | `1` | Wheel sensitivity multiplier. |
|
|
474
|
+
| `wtf-mousewheel-threshold-delta` | `mousewheel.thresholdDelta` | number | — | Minimum wheel delta needed to trigger a slide change. |
|
|
475
|
+
| `wtf-mousewheel-threshold-time` | `mousewheel.thresholdTime` | number (ms) | — | Minimum time between wheel-triggered slide changes. |
|
|
476
|
+
| `wtf-mousewheel-events-target` | `mousewheel.eventsTarget` | `container` \| `wrapper` \| CSS selector | `container` | Element that listens for wheel events. |
|
|
477
|
+
| `wtf-mousewheel-no-mousewheel-class` | `mousewheel.noMousewheelClass` | string | `swiper-no-mousewheel` | The mouse wheel is ignored over elements with this class. |
|
|
478
478
|
<!-- /reference:mousewheel-control:0 -->
|
|
479
479
|
|
|
480
480
|
### Hash Navigation
|
|
@@ -482,10 +482,10 @@ Makes one slider drive another. The value of `waterfall-controller-control` is t
|
|
|
482
482
|
Syncs the active slide with the URL hash. Add `data-hash="my-slide"` to each slide. Setting either attribute below to `true` turns hash navigation on.
|
|
483
483
|
|
|
484
484
|
<!-- reference:hash-navigation:0 -->
|
|
485
|
-
| Attribute
|
|
486
|
-
|
|
|
487
|
-
| `
|
|
488
|
-
| `
|
|
485
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
486
|
+
| ----------------------------------- | ----------------------------- | ------- | ------- | ---------------------------------------------------------------------- |
|
|
487
|
+
| `wtf-hash-navigation-watch-state` | `hashNavigation.watchState` | boolean | `false` | Changes slides when the hash changes (e.g. browser back/forward). |
|
|
488
|
+
| `wtf-hash-navigation-replace-state` | `hashNavigation.replaceState` | boolean | `false` | Replaces the history entry instead of adding a new one on each change. |
|
|
489
489
|
<!-- /reference:hash-navigation:0 -->
|
|
490
490
|
|
|
491
491
|
### History Navigation
|
|
@@ -493,39 +493,39 @@ Syncs the active slide with the URL hash. Add `data-hash="my-slide"` to each sli
|
|
|
493
493
|
Syncs the active slide with the URL path (e.g. `/slides/my-slide`). Add `data-history="my-slide"` to each slide. Setting any attribute below to a non-default value turns history navigation on.
|
|
494
494
|
|
|
495
495
|
<!-- reference:history-navigation:0 -->
|
|
496
|
-
| Attribute
|
|
497
|
-
|
|
|
498
|
-
| `
|
|
499
|
-
| `
|
|
500
|
-
| `
|
|
501
|
-
| `
|
|
496
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
497
|
+
| --------------------------- | ---------------------- | ------- | -------- | ------------------------------------------------------- |
|
|
498
|
+
| `wtf-history-key` | `history.key` | string | `slides` | URL segment placed before the slide name. |
|
|
499
|
+
| `wtf-history-root` | `history.root` | string | `""` | Base URL path for history entries. |
|
|
500
|
+
| `wtf-history-replace-state` | `history.replaceState` | boolean | `false` | Replaces the history entry instead of adding a new one. |
|
|
501
|
+
| `wtf-history-keep-query` | `history.keepQuery` | boolean | `false` | Keeps the URL query parameters when the URL is updated. |
|
|
502
502
|
<!-- /reference:history-navigation:0 -->
|
|
503
503
|
|
|
504
504
|
### Zoom
|
|
505
505
|
|
|
506
|
-
Double-tap or pinch to zoom. Wrap each slide's image in `<div class="swiper-zoom-container">`. Setting any attribute below to a non-default value turns zoom on (e.g. `
|
|
506
|
+
Double-tap or pinch to zoom. Wrap each slide's image in `<div class="swiper-zoom-container">`. Setting any attribute below to a non-default value turns zoom on (e.g. `wtf-zoom-max-ratio="4"`).
|
|
507
507
|
|
|
508
508
|
<!-- reference:zoom:0 -->
|
|
509
|
-
| Attribute
|
|
510
|
-
|
|
|
511
|
-
| `
|
|
512
|
-
| `
|
|
513
|
-
| `
|
|
514
|
-
| `
|
|
515
|
-
| `
|
|
516
|
-
| `
|
|
517
|
-
| `
|
|
509
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
510
|
+
| --------------------------------- | -------------------------- | ------- | ----------------------- | ------------------------------------------ |
|
|
511
|
+
| `wtf-zoom-max-ratio` | `zoom.maxRatio` | number | `3` | Maximum zoom level. |
|
|
512
|
+
| `wtf-zoom-min-ratio` | `zoom.minRatio` | number | `1` | Minimum zoom level. |
|
|
513
|
+
| `wtf-zoom-toggle` | `zoom.toggle` | boolean | `true` | Double-tap toggles zoom. |
|
|
514
|
+
| `wtf-zoom-limit-to-original-size` | `zoom.limitToOriginalSize` | boolean | `false` | Never zooms past the image's natural size. |
|
|
515
|
+
| `wtf-zoom-pan-on-mouse-move` | `zoom.panOnMouseMove` | boolean | `false` | Pans the zoomed image by moving the mouse. |
|
|
516
|
+
| `wtf-zoom-container-class` | `zoom.containerClass` | string | `swiper-zoom-container` | Class of the zoom container element. |
|
|
517
|
+
| `wtf-zoom-zoomed-slide-class` | `zoom.zoomedSlideClass` | string | `swiper-slide-zoomed` | Class added to the zoomed slide. |
|
|
518
518
|
<!-- /reference:zoom:0 -->
|
|
519
519
|
|
|
520
520
|
### Parallax
|
|
521
521
|
|
|
522
522
|
<!-- reference:parallax:0 -->
|
|
523
|
-
| Attribute
|
|
524
|
-
|
|
|
525
|
-
| `
|
|
523
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
524
|
+
| ---------------------- | ------------------ | ------- | ------- | ------------------------------------------------- |
|
|
525
|
+
| `wtf-parallax-enabled` | `parallax.enabled` | boolean | `false` | Turns on parallax for elements inside the slider. |
|
|
526
526
|
<!-- /reference:parallax:0 -->
|
|
527
527
|
|
|
528
|
-
Set `
|
|
528
|
+
Set `wtf-parallax-enabled="true"`, then add SwiperJS's native parallax attributes to elements **inside** the slides (or on a background element inside `.swiper`). Leave it off for sliders that do not use parallax: Swiper forces `watchSlidesProgress` on whenever parallax is enabled, and then walks every slide on each transition.
|
|
529
529
|
|
|
530
530
|
<!-- reference:parallax:1 -->
|
|
531
531
|
| Attribute | Values | Description |
|
|
@@ -544,10 +544,10 @@ Set `waterfall-parallax-enabled="true"`, then add SwiperJS's native parallax att
|
|
|
544
544
|
Add `loading="lazy"` to slide images (Webflow does this by default). Swiper can preload images in neighboring slides.
|
|
545
545
|
|
|
546
546
|
<!-- reference:lazy-loading:0 -->
|
|
547
|
-
| Attribute
|
|
548
|
-
|
|
|
549
|
-
| `
|
|
550
|
-
| `
|
|
547
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
548
|
+
| ---------------------------- | --------------------- | ------ | ----------------------- | -------------------------------------------------------------------------------- |
|
|
549
|
+
| `wtf-lazy-preload-prev-next` | `lazyPreloadPrevNext` | number | `0` | Number of slides before and after the active slide whose lazy images load early. |
|
|
550
|
+
| `wtf-lazy-preloader-class` | `lazyPreloaderClass` | string | `swiper-lazy-preloader` | Class of the preloader element that is removed once the image loads. |
|
|
551
551
|
<!-- /reference:lazy-loading:0 -->
|
|
552
552
|
|
|
553
553
|
### Accessibility (a11y)
|
|
@@ -555,37 +555,37 @@ Add `loading="lazy"` to slide images (Webflow does this by default). Swiper can
|
|
|
555
555
|
Accessibility is **on by default**. Message attributes support the `{{index}}` and `{{slidesLength}}` placeholders.
|
|
556
556
|
|
|
557
557
|
<!-- reference:accessibility-a11y:0 -->
|
|
558
|
-
| Attribute
|
|
559
|
-
|
|
|
560
|
-
| `
|
|
561
|
-
| `
|
|
562
|
-
| `
|
|
563
|
-
| `
|
|
564
|
-
| `
|
|
565
|
-
| `
|
|
566
|
-
| `
|
|
567
|
-
| `
|
|
568
|
-
| `
|
|
569
|
-
| `
|
|
570
|
-
| `
|
|
571
|
-
| `
|
|
572
|
-
| `
|
|
573
|
-
| `
|
|
574
|
-
| `
|
|
558
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
559
|
+
| --------------------------------------------- | -------------------------------------- | ------- | ------------------------------ | ---------------------------------------------------------------------- |
|
|
560
|
+
| `wtf-a11y-enabled` | `a11y.enabled` | boolean | `true` | Turns accessibility features on or off. |
|
|
561
|
+
| `wtf-a11y-prev-slide-message` | `a11y.prevSlideMessage` | string | `Previous slide` | Label for the previous button. |
|
|
562
|
+
| `wtf-a11y-next-slide-message` | `a11y.nextSlideMessage` | string | `Next slide` | Label for the next button. |
|
|
563
|
+
| `wtf-a11y-first-slide-message` | `a11y.firstSlideMessage` | string | `This is the first slide` | Announced on the first slide. |
|
|
564
|
+
| `wtf-a11y-last-slide-message` | `a11y.lastSlideMessage` | string | `This is the last slide` | Announced on the last slide. |
|
|
565
|
+
| `wtf-a11y-pagination-bullet-message` | `a11y.paginationBulletMessage` | string | `Go to slide {{index}}` | Label for each pagination bullet. |
|
|
566
|
+
| `wtf-a11y-slide-label-message` | `a11y.slideLabelMessage` | string | `{{index}} / {{slidesLength}}` | `aria-label` for each slide. |
|
|
567
|
+
| `wtf-a11y-container-message` | `a11y.containerMessage` | string | — | `aria-label` for the slider container. |
|
|
568
|
+
| `wtf-a11y-container-role` | `a11y.containerRole` | string | — | `role` for the slider container. |
|
|
569
|
+
| `wtf-a11y-container-role-description-message` | `a11y.containerRoleDescriptionMessage` | string | — | `aria-roledescription` for the container (e.g. `carousel`). |
|
|
570
|
+
| `wtf-a11y-item-role-description-message` | `a11y.itemRoleDescriptionMessage` | string | — | `aria-roledescription` for each slide (e.g. `slide`). |
|
|
571
|
+
| `wtf-a11y-slide-role` | `a11y.slideRole` | string | `group` | `role` for each slide. |
|
|
572
|
+
| `wtf-a11y-id` | `a11y.id` | string | _(random)_ | ID for the wrapper, used by `aria-controls` on the navigation buttons. |
|
|
573
|
+
| `wtf-a11y-notification-class` | `a11y.notificationClass` | string | `swiper-notification` | Class of the live-region element used for announcements. |
|
|
574
|
+
| `wtf-a11y-scroll-on-focus` | `a11y.scrollOnFocus` | boolean | `true` | Scrolls to a slide when it receives keyboard focus. |
|
|
575
575
|
<!-- /reference:accessibility-a11y:0 -->
|
|
576
576
|
|
|
577
577
|
### Observer
|
|
578
578
|
|
|
579
579
|
<!-- reference:observer:0 -->
|
|
580
|
-
| Attribute
|
|
581
|
-
|
|
|
582
|
-
| `
|
|
583
|
-
| `
|
|
584
|
-
| `
|
|
585
|
-
| `
|
|
586
|
-
| `
|
|
587
|
-
| `
|
|
588
|
-
| `
|
|
580
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
581
|
+
| ----------------------------- | ---------------------- | ------- | ------- | ---------------------------------------------------------------------------------------------------- |
|
|
582
|
+
| `wtf-observer` | `observer` | boolean | `false` | Re-initializes the slider when its style or slides change. Useful for sliders inside tabs or modals. |
|
|
583
|
+
| `wtf-observe-parents` | `observeParents` | boolean | `false` | Also watches parent elements for changes. |
|
|
584
|
+
| `wtf-observe-slide-children` | `observeSlideChildren` | boolean | `false` | Also watches for changes inside slides. |
|
|
585
|
+
| `wtf-resize-observer` | `resizeObserver` | boolean | `true` | Uses ResizeObserver to detect container size changes. |
|
|
586
|
+
| `wtf-update-on-window-resize` | `updateOnWindowResize` | boolean | `true` | Recalculates the layout when the window is resized. |
|
|
587
|
+
| `wtf-watch-overflow` | `watchOverflow` | boolean | `true` | Disables the slider and hides navigation when there aren't enough slides to scroll. |
|
|
588
|
+
| `wtf-watch-slides-progress` | `watchSlidesProgress` | boolean | `false` | Tracks each slide's progress and adds visibility classes. Required on thumbnail sliders. |
|
|
589
589
|
<!-- /reference:observer:0 -->
|
|
590
590
|
|
|
591
591
|
### CSS Classes
|
|
@@ -593,17 +593,17 @@ Accessibility is **on by default**. Message attributes support the `{{index}}` a
|
|
|
593
593
|
Override the classes Swiper uses. Leave these at their defaults unless your markup uses different class names.
|
|
594
594
|
|
|
595
595
|
<!-- reference:css-classes:0 -->
|
|
596
|
-
| Attribute
|
|
597
|
-
|
|
|
598
|
-
| `
|
|
599
|
-
| `
|
|
600
|
-
| `
|
|
601
|
-
| `
|
|
602
|
-
| `
|
|
603
|
-
| `
|
|
604
|
-
| `
|
|
605
|
-
| `
|
|
606
|
-
| `
|
|
596
|
+
| Attribute | Swiper option | Default |
|
|
597
|
+
| ------------------------------- | ------------------------ | ---------------------------- |
|
|
598
|
+
| `wtf-container-modifier-class` | `containerModifierClass` | `swiper-` |
|
|
599
|
+
| `wtf-wrapper-class` | `wrapperClass` | `swiper-wrapper` |
|
|
600
|
+
| `wtf-slide-class` | `slideClass` | `swiper-slide` |
|
|
601
|
+
| `wtf-slide-active-class` | `slideActiveClass` | `swiper-slide-active` |
|
|
602
|
+
| `wtf-slide-next-class` | `slideNextClass` | `swiper-slide-next` |
|
|
603
|
+
| `wtf-slide-prev-class` | `slidePrevClass` | `swiper-slide-prev` |
|
|
604
|
+
| `wtf-slide-visible-class` | `slideVisibleClass` | `swiper-slide-visible` |
|
|
605
|
+
| `wtf-slide-fully-visible-class` | `slideFullyVisibleClass` | `swiper-slide-fully-visible` |
|
|
606
|
+
| `wtf-slide-blank-class` | `slideBlankClass` | `swiper-slide-blank` |
|
|
607
607
|
<!-- /reference:css-classes:0 -->
|
|
608
608
|
|
|
609
609
|
### Advanced
|
|
@@ -611,37 +611,37 @@ Override the classes Swiper uses. Leave these at their defaults unless your mark
|
|
|
611
611
|
Rarely needed. Some of these can break other features, so change them only if you know you need to.
|
|
612
612
|
|
|
613
613
|
<!-- reference:advanced:0 -->
|
|
614
|
-
| Attribute
|
|
615
|
-
|
|
|
616
|
-
| `
|
|
617
|
-
| `
|
|
618
|
-
| `
|
|
619
|
-
| `
|
|
620
|
-
| `
|
|
621
|
-
| `
|
|
622
|
-
| `
|
|
623
|
-
| `
|
|
624
|
-
| `
|
|
625
|
-
| `
|
|
626
|
-
| `
|
|
627
|
-
| `
|
|
628
|
-
| `
|
|
629
|
-
| `
|
|
630
|
-
| `
|
|
614
|
+
| Attribute | Swiper option | Values | Default | Description |
|
|
615
|
+
| -------------------------------- | ------------------------- | ------- | ------------------ | ------------------------------------------------------------------------------------------------------- |
|
|
616
|
+
| `wtf-enabled` | `enabled` | boolean | `true` | Set to `false` to create the slider in a disabled state. |
|
|
617
|
+
| `wtf-init` | `init` | boolean | `true` | Set to `false` to skip automatic initialization; call `swiper.init()` yourself. |
|
|
618
|
+
| `wtf-css-mode` | `cssMode` | boolean | `false` | Uses native CSS scroll-snap. Many features (effects, loop, some touch options) don't work in CSS mode. |
|
|
619
|
+
| `wtf-round-lengths` | `roundLengths` | boolean | `false` | Rounds slide widths and heights to whole pixels to avoid blurry text. |
|
|
620
|
+
| `wtf-max-backface-hidden-slides` | `maxBackfaceHiddenSlides` | number | `10` | Above this slide count, `backface-visibility: hidden` is not applied (a Safari performance workaround). |
|
|
621
|
+
| `wtf-passive-listeners` | `passiveListeners` | boolean | `true` | Uses passive event listeners where possible. |
|
|
622
|
+
| `wtf-run-callbacks-on-init` | `runCallbacksOnInit` | boolean | `true` | Fires transition callbacks on initialization. |
|
|
623
|
+
| `wtf-unique-nav-elements` | `uniqueNavElements` | boolean | `true` | Looks for navigation elements only inside the slider. |
|
|
624
|
+
| `wtf-set-wrapper-size` | `setWrapperSize` | boolean | `false` | Sets the wrapper's width/height explicitly (for old browsers without flexbox). |
|
|
625
|
+
| `wtf-create-elements` | `createElements` | boolean | `false` | Auto-creates navigation/pagination/scrollbar elements. Prefer building them in Webflow instead. |
|
|
626
|
+
| `wtf-events-prefix` | `eventsPrefix` | string | `swiper` | Prefix for DOM events emitted by the slider. |
|
|
627
|
+
| `wtf-swiper-element-node-name` | `swiperElementNodeName` | string | `SWIPER-CONTAINER` | Node name used to detect Swiper Element (web component) containers. |
|
|
628
|
+
| `wtf-url` | `url` | string | — | Page URL for server-side rendering with history navigation. |
|
|
629
|
+
| `wtf-user-agent` | `userAgent` | string | — | User agent for server-side rendering. |
|
|
630
|
+
| `wtf-virtual-translate` | `virtualTranslate` | boolean | `false` | Runs the slider without ever translating the wrapper, for building a custom slide transition. |
|
|
631
631
|
<!-- /reference:advanced:0 -->
|
|
632
632
|
|
|
633
633
|
### Callbacks
|
|
634
634
|
|
|
635
635
|
<!-- reference:callbacks:0 -->
|
|
636
|
-
| Attribute
|
|
637
|
-
|
|
|
638
|
-
| `
|
|
636
|
+
| Attribute | Values | Description |
|
|
637
|
+
| --------------------------- | -------------------- | --------------------------------------------------------- |
|
|
638
|
+
| `wtf-callback-slide-change` | Global function name | Calls `window[name]` every time the active slide changes. |
|
|
639
639
|
<!-- /reference:callbacks:0 -->
|
|
640
640
|
|
|
641
641
|
The function receives a single object:
|
|
642
642
|
|
|
643
643
|
```html
|
|
644
|
-
<div
|
|
644
|
+
<div wtf-instance="hero" wtf-callback-slide-change="onHeroChange">…</div>
|
|
645
645
|
|
|
646
646
|
<script>
|
|
647
647
|
window.onHeroChange = ({ swiper, activeIndex, previousIndex, activeSlide, previousSlide }) => {
|
|
@@ -657,26 +657,26 @@ TypeScript users can import the parameter type: `import type { SlideChangeCallba
|
|
|
657
657
|
Moves elements from elsewhere on the page into a Waterfall when the page loads, for example to inject a CTA card or content from a second CMS list. Put the attribute on the element to insert; its value is the target Waterfall's name. The element is cloned into the slider (with the `swiper-slide` class added if missing) and the original is removed. If the original was inside a Webflow Collection List (`.w-dyn-list`), that list is removed too.
|
|
658
658
|
|
|
659
659
|
<!-- reference:slide-manipulation:0 -->
|
|
660
|
-
| Attribute
|
|
661
|
-
|
|
|
662
|
-
| `
|
|
663
|
-
| `
|
|
664
|
-
| `
|
|
665
|
-
| `
|
|
666
|
-
| `
|
|
667
|
-
| `
|
|
660
|
+
| Attribute | Values | Description |
|
|
661
|
+
| ------------------- | -------------- | ---------------------------------------------------------------------------------------------------- |
|
|
662
|
+
| `wtf-append-slide` | Waterfall name | Adds this element as the last slide. |
|
|
663
|
+
| `wtf-prepend-slide` | Waterfall name | Adds this element as the first slide. |
|
|
664
|
+
| `wtf-add-slide` | Waterfall name | Inserts this element at the position given by `wtf-add-index`. |
|
|
665
|
+
| `wtf-add-index` | number | Position for `wtf-add-slide` (defaults to `1`). |
|
|
666
|
+
| `wtf-remove-slide` | Waterfall name | Removes the slide at `wtf-remove-index` from the target slider. This element itself is also removed. |
|
|
667
|
+
| `wtf-remove-index` | number | Index of the slide to remove. |
|
|
668
668
|
<!-- /reference:slide-manipulation:0 -->
|
|
669
669
|
|
|
670
670
|
```html
|
|
671
|
-
<div
|
|
671
|
+
<div wtf-append-slide="SWIPER_NAME" class="cta-card">Contact us</div>
|
|
672
672
|
```
|
|
673
673
|
|
|
674
674
|
## Element Reference
|
|
675
675
|
|
|
676
|
-
Elements are identified with the `
|
|
676
|
+
Elements are identified with the `wtf-el` attribute and must be placed **inside** the `[wtf-instance]` wrapper, so each slider finds its own controls.
|
|
677
677
|
|
|
678
678
|
<!-- reference:element-reference:0 -->
|
|
679
|
-
| `
|
|
679
|
+
| `wtf-el` value | Purpose |
|
|
680
680
|
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
681
681
|
| `navigation-next` | Next slide button. Enables navigation. |
|
|
682
682
|
| `navigation-prev` | Previous slide button. Enables navigation. |
|
|
@@ -708,7 +708,7 @@ When installed from npm, the package also exports all attribute and element name
|
|
|
708
708
|
|
|
709
709
|
- Creative Effect
|
|
710
710
|
- Virtual Slides
|
|
711
|
-
- Arbitrary Swiper event handlers via attributes (use `
|
|
711
|
+
- Arbitrary Swiper event handlers via attributes (use `wtf-callback-slide-change` or the [JavaScript API](#javascript-api))
|
|
712
712
|
- `slidesPerView: auto` at responsive breakpoints
|
|
713
713
|
|
|
714
714
|
## Development
|