well-waterfall 1.5.4 → 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 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.5.4<!-- /version -->** · Bundled SwiperJS: **<!-- swiper-version -->14.4.0<!-- /swiper-version -->**
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](#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.5.4"></script>
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 `waterfall` attribute. Each Waterfall is identified by `[waterfall="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).
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 waterfall="SWIPER_NAME" waterfall-slides-per-view="3" waterfall-space-between="24">
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 waterfall-el="pagination"></div>
117
- <button waterfall-el="navigation-prev">Prev</button>
118
- <button waterfall-el="navigation-next">Next</button>
119
- <div waterfall-el="scrollbar"></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 `[waterfall]` wrapper element.
130
- - **Naming.** Every attribute is `waterfall-` plus its SwiperJS parameter in kebab-case, with no exceptions. Example: `direction` → `waterfall-direction`. Parameters inside an object always keep the group name: `freeMode.enabled` → `waterfall-free-mode-enabled`, `coverflowEffect.depth` → `waterfall-coverflow-effect-depth`, `autoplay.delay` → `waterfall-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.
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 `waterfall-debug-mode="true"` to log the generated Swiper config, the elements found, and linking details to the console.
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 | Swiper option | Values | Default | Description |
146
- | ------------------------- | -------------- | ------- | ------------ | ----------------------------------------------------------------------------------------------------------------------- |
147
- | `waterfall` | — | string | _(required)_ | Unique name for this slider. Marks the element as a Waterfall. |
148
- | `waterfall-debug-mode` | — | boolean | `false` | Logs the generated config and initialization details to the console. |
149
- | `waterfall-initial-slide` | `initialSlide` | number | `0` | Index of the slide to show first. |
150
- | `waterfall-nested` | `nested` | boolean | `false` | Set to `true` on a Swiper nested inside another Swiper with the same direction, so touch events are captured correctly. |
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 | Swiper option | Values | Default | Description |
157
- | -------------------------------------- | -------------------------- | -------------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
158
- | `waterfall-direction` | `direction` | `horizontal` \| `vertical` | `horizontal` | Slide direction. |
159
- | `waterfall-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
- | `waterfall-slides-per-group` | `slidesPerGroup` | number | `1` | Number of slides to advance per navigation step. |
161
- | `waterfall-slides-per-group-skip` | `slidesPerGroupSkip` | number | `0` | Number of initial slides that advance one at a time before grouping starts. |
162
- | `waterfall-slides-per-group-auto` | `slidesPerGroupAuto` | boolean | `false` | With `slidesPerView: auto`, advances by the number of slides currently visible. |
163
- | `waterfall-space-between` | `spaceBetween` | number (px) | `0` | Gap between slides. |
164
- | `waterfall-centered-slides` | `centeredSlides` | boolean | `false` | Centers the active slide instead of aligning it to the left or top. |
165
- | `waterfall-center-insufficient-slides` | `centerInsufficientSlides` | boolean | `false` | Centers the slides when there are fewer than `slidesPerView`. |
166
- | `waterfall-normalize-slide-index` | `normalizeSlideIndex` | boolean | `true` | Normalizes the active slide index when using `slidesPerGroup`. |
167
- | `waterfall-auto-height` | `autoHeight` | boolean | `false` | Resizes the slider height to match the active slide. |
168
- | `waterfall-slides-offset-before` | `slidesOffsetBefore` | number (px) | `0` | Extra space before the first slide. |
169
- | `waterfall-slides-offset-after` | `slidesOffsetAfter` | number (px) | `0` | Extra space after the last slide. |
170
- | `waterfall-width` | `width` | number (px) | — | Forces a slider width. Useful only when the slider is hidden on init. |
171
- | `waterfall-height` | `height` | number (px) | — | Forces a slider height. Useful only when the slider is hidden on init. |
172
- | `waterfall-centered-slides-bounds` | `centeredSlidesBounds` | boolean | `false` | Centers the active slide without leaving gaps at the start and end. Requires `waterfall-centered-slides="true"`; not intended for use with loop or pagination. |
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. `waterfall-slides-per-view`) is used.
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 | Swiper option | Values | Description |
192
- | ----------------------------------------- | ----------------- | ----------------------- | ------------------------------------------------------------------------------------------------- |
193
- | `waterfall-slides-per-view-{breakpoint}` | `slidesPerView` | number | Slides visible at this breakpoint, or `auto`. |
194
- | `waterfall-slides-per-group-{breakpoint}` | `slidesPerGroup` | number | Slides advanced per step at this breakpoint. |
195
- | `waterfall-space-between-{breakpoint}` | `spaceBetween` | number (px) | Gap between slides at this breakpoint. |
196
- | `waterfall-centered-slides-{breakpoint}` | `centeredSlides` | boolean | Centers the active slide at this breakpoint. |
197
- | `waterfall-breakpoints-base` | `breakpointsBase` | `window` \| `container` | Measures breakpoints against the window width (default `window`) or the slider container's width. |
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: `waterfall-slides-per-view="3"` + `waterfall-slides-per-view-tablet="2"` + `waterfall-slides-per-view-mobile-large="1"` shows 3 slides on Desktop and up, 2 on Tablet, and 1 on both mobile breakpoints.
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 | Swiper option | Values | Default | Description |
206
- | ---------------------------------- | ---------------------- | ----------- | ------- | -------------------------------------------------------------------------------------------------------------------------- |
207
- | `waterfall-loop` | `loop` | boolean | `false` | Wraps around endlessly. Cannot be combined with `waterfall-rewind`; if both are `true`, loop wins and a warning is logged. |
208
- | `waterfall-rewind` | `rewind` | boolean | `false` | Jumps back to the first slide after the last one. Cannot be combined with `waterfall-loop`. |
209
- | `waterfall-speed` | `speed` | number (ms) | `300` | Transition duration between slides. |
210
- | `waterfall-loop-add-blank-slides` | `loopAddBlankSlides` | boolean | `true` | With loop and grid/`slidesPerGroup`, adds blank slides when the slide count isn't evenly divisible. |
211
- | `waterfall-loop-additional-slides` | `loopAdditionalSlides` | number | `0` | Extra slides to clone for looping. |
212
- | `waterfall-loop-prevents-sliding` | `loopPreventsSliding` | boolean | `true` | Blocks navigation while the loop is repositioning slides. |
213
- | `waterfall-one-way-movement` | `oneWayMovement` | boolean | `false` | Swiping in either direction advances to the next slide. |
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 | Swiper option | Values | Default | Description |
220
- | ------------------------------------------- | ------------------------------- | ----------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
221
- | `waterfall-autoplay` | `autoplay` | boolean | `false` | Turns autoplay on. The other autoplay attributes apply only when this is `true`. |
222
- | `waterfall-autoplay-delay` | `autoplay.delay` | number (ms) | `3000` | Time between transitions. |
223
- | `waterfall-smooth-autoplay` | — | boolean | `false` | Continuous "marquee" scrolling: sets the delay to `0` and applies linear easing to `.swiper-wrapper`. Pair it with a high `waterfall-speed` (e.g. `5000`). |
224
- | `waterfall-autoplay-disable-on-interaction` | `autoplay.disableOnInteraction` | boolean | `false` | Stops autoplay permanently after the user interacts with the slider. |
225
- | `waterfall-autoplay-pause-on-mouse-enter` | `autoplay.pauseOnMouseEnter` | boolean | `false` | Pauses while the pointer is over the slider. With `waterfall-smooth-autoplay`, the marquee freezes where it stands and picks the slide back up on the way out. |
226
- | `waterfall-autoplay-reverse-direction` | `autoplay.reverseDirection` | boolean | `false` | Autoplays backwards. |
227
- | `waterfall-autoplay-stop-on-last-slide` | `autoplay.stopOnLastSlide` | boolean | `false` | Stops on the last slide. Has no effect in loop mode. |
228
- | `waterfall-autoplay-wait-for-transition` | `autoplay.waitForTransition` | boolean | `true` | Waits for the slide transition to finish before the next autoplay step. Turn off when using `waterfall-virtual-translate`. |
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 `waterfall-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.
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 | Values | Default | Description |
239
- | ------------------------------------------ | --------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
240
- | `waterfall-autoplay-control-enabled` | boolean | `true` | The play/pause button. On by default whenever autoplay is on and the three `waterfall-el` control elements are present; set to `false` to turn it off. |
241
- | `waterfall-autoplay-control-default-state` | `playing` \| `paused` | `playing` | Whether autoplay starts running or paused on page load. |
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,236 +246,235 @@ 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 | Swiper option | Values | Default | Description |
250
- | ------------------------------------------------ | ------------------------------------ | ------- | ---------------------------- | ----------------------------------------------------------------- |
251
- | `waterfall-navigation-enabled` | `navigation.enabled` | boolean | _(auto)_ | Set to `false` to turn navigation off even when buttons exist. |
252
- | `waterfall-navigation-hide-on-click` | `navigation.hideOnClick` | boolean | `false` | Toggles button visibility when the slider is clicked. |
253
- | `waterfall-allow-slide-next` | `allowSlideNext` | boolean | `true` | Set to `false` to block sliding forward. |
254
- | `waterfall-allow-slide-prev` | `allowSlidePrev` | boolean | `true` | Set to `false` to block sliding backward. |
255
- | `waterfall-navigation-disabled-class` | `navigation.disabledClass` | string | `swiper-button-disabled` | Class added to a button when it can't be used (first/last slide). |
256
- | `waterfall-navigation-hidden-class` | `navigation.hiddenClass` | string | `swiper-button-hidden` | Class added to hidden buttons. |
257
- | `waterfall-navigation-lock-class` | `navigation.lockClass` | string | `swiper-button-lock` | Class added when navigation is locked (not enough slides). |
258
- | `waterfall-navigation-navigation-disabled-class` | `navigation.navigationDisabledClass` | string | `swiper-navigation-disabled` | Class added to the container when navigation is disabled. |
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
262
262
 
263
- Pagination turns on when a `pagination` [element](#element-reference) is found inside the wrapper. Add a `pagination-bullet` element to style the bullets in the Designer: every generated bullet gets that element's tag name and its classes. To set the class in code instead, use `waterfall-pagination-bullet-class`, which overrides the donated classes.
263
+ Pagination turns on when a `pagination` [element](#element-reference) is found inside the wrapper. Add a `pagination-bullet` element to style the bullets in the Designer: every generated bullet gets that element's tag name and its classes. Add a `pagination-bullet-active` element beside it, carrying one extra class, and that class marks the active bullet.
264
+
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.
264
266
 
265
267
  <!-- reference:pagination:0 -->
266
- | Attribute | Swiper option | Values | Default | Description |
267
- | ------------------------------------------------- | ------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------- | -------------------------------------------------------------------------------------------------------- |
268
- | `waterfall-pagination-type` | `pagination.type` | `bullets` \| `numberBullets` \| `fraction` \| `progressbar` \| `custom` | `bullets` | Pagination style. `numberBullets` shows bullets containing the slide number. |
269
- | `waterfall-pagination-enabled` | `pagination.enabled` | boolean | _(auto)_ | Set to `false` to turn pagination off even when the element exists. |
270
- | `waterfall-pagination-clickable` | `pagination.clickable` | boolean | `false` | Clicking a bullet goes to that slide. |
271
- | `waterfall-pagination-dynamic-bullets` | `pagination.dynamicBullets` | boolean | `false` | Shows only a few bullets at a time; useful with many slides. |
272
- | `waterfall-pagination-dynamic-main-bullets` | `pagination.dynamicMainBullets` | number | `1` | Number of main bullets shown with dynamic bullets. |
273
- | `waterfall-pagination-hide-on-click` | `pagination.hideOnClick` | boolean | `false` | Toggles pagination visibility when the slider is clicked. |
274
- | `waterfall-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). |
275
- | `waterfall-pagination-bullet-active-class` | `pagination.bulletActiveClass` | string | `swiper-pagination-bullet-active` | Class on the active bullet. |
276
- | `waterfall-pagination-clickable-class` | `pagination.clickableClass` | string | `swiper-pagination-clickable` | Class added when pagination is clickable. |
277
- | `waterfall-pagination-current-class` | `pagination.currentClass` | string | `swiper-pagination-current` | Class on the current number in `fraction` pagination. |
278
- | `waterfall-pagination-total-class` | `pagination.totalClass` | string | `swiper-pagination-total` | Class on the total number in `fraction` pagination. |
279
- | `waterfall-pagination-hidden-class` | `pagination.hiddenClass` | string | `swiper-pagination-hidden` | Class added when pagination is hidden. |
280
- | `waterfall-pagination-horizontal-class` | `pagination.horizontalClass` | string | `swiper-pagination-horizontal` | Class added for horizontal sliders. |
281
- | `waterfall-pagination-vertical-class` | `pagination.verticalClass` | string | `swiper-pagination-vertical` | Class added for vertical sliders. |
282
- | `waterfall-pagination-lock-class` | `pagination.lockClass` | string | `swiper-pagination-lock` | Class added when pagination is locked (not enough slides). |
283
- | `waterfall-pagination-modifier-class` | `pagination.modifierClass` | string | `swiper-pagination-` | Prefix for the type modifier class (e.g. `swiper-pagination-bullets`). |
284
- | `waterfall-pagination-pagination-disabled-class` | `pagination.paginationDisabledClass` | string | `swiper-pagination-disabled` | Class added when pagination is disabled. |
285
- | `waterfall-pagination-progressbar-fill-class` | `pagination.progressbarFillClass` | string | `swiper-pagination-progressbar-fill` | Class on the progress bar fill. |
286
- | `waterfall-pagination-progressbar-opposite-class` | `pagination.progressbarOppositeClass` | string | `swiper-pagination-progressbar-opposite` | Class added with an opposite progress bar. |
287
- | `waterfall-pagination-bullet-class` | `pagination.bulletClass` | string | the `pagination-bullet` element's class | Class applied to every generated bullet. Overrides the class donated by the `pagination-bullet` element. |
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
291
291
 
292
- The scrollbar turns on when a `scrollbar` [element](#element-reference) is found inside the wrapper. Swiper builds the drag handle itself, but a `scrollbar-drag` element inside the track donates its classes to it, so you can style the handle in the Designer. `waterfall-scrollbar-drag-class` overrides the donated classes.
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 | Swiper option | Values | Default | Description |
296
- | ---------------------------------------------- | ---------------------------------- | --------------------- | ------------------------------------ | ---------------------------------------------------------------------------------------------- |
297
- | `waterfall-scrollbar-enabled` | `scrollbar.enabled` | boolean | _(auto)_ | Set to `false` to turn the scrollbar off even when the element exists. |
298
- | `waterfall-scrollbar-draggable` | `scrollbar.draggable` | boolean | `false` | Lets the user drag the scrollbar handle. |
299
- | `waterfall-scrollbar-hide` | `scrollbar.hide` | boolean | `false` | Hides the scrollbar after the user stops interacting. |
300
- | `waterfall-scrollbar-snap-on-release` | `scrollbar.snapOnRelease` | boolean | `true` | Snaps to the nearest slide when the handle is released. |
301
- | `waterfall-scrollbar-drag-size` | `scrollbar.dragSize` | number (px) \| `auto` | `auto` | Size of the drag handle. |
302
- | `waterfall-scrollbar-horizontal-class` | `scrollbar.horizontalClass` | string | `swiper-scrollbar-horizontal` | Class added for horizontal sliders. |
303
- | `waterfall-scrollbar-vertical-class` | `scrollbar.verticalClass` | string | `swiper-scrollbar-vertical` | Class added for vertical sliders. |
304
- | `waterfall-scrollbar-lock-class` | `scrollbar.lockClass` | string | `swiper-scrollbar-lock` | Class added when the scrollbar is locked (not enough slides). |
305
- | `waterfall-scrollbar-scrollbar-disabled-class` | `scrollbar.scrollbarDisabledClass` | string | `swiper-scrollbar-disabled` | Class added when the scrollbar is disabled. |
306
- | `waterfall-scrollbar-drag-class` | `scrollbar.dragClass` | string | the `scrollbar-drag` element's class | Class applied to the drag handle. Overrides the class donated by the `scrollbar-drag` element. |
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. |
307
306
  <!-- /reference:scrollbar:0 -->
308
307
 
309
308
  ### Effects
310
309
 
311
310
  <!-- reference:effects:0 -->
312
- | Attribute | Swiper option | Values | Default | Description |
313
- | ---------------------------- | ----------------- | --------------------------------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
314
- | `waterfall-effect` | `effect` | `slide` \| `fade` \| `cube` \| `coverflow` \| `flip` \| `cards` | `slide` | Transition effect. Tune `fade` with `waterfall-fade-effect-mode`. |
315
- | `waterfall-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. |
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. |
316
315
  <!-- /reference:effects:0 -->
317
316
 
318
317
  The settings below apply only when the matching effect is selected.
319
318
 
320
- **Coverflow** (`waterfall-effect="coverflow"`)
319
+ **Coverflow** (`wtf-effect="coverflow"`)
321
320
 
322
321
  <!-- reference:effects:1 -->
323
- | Attribute | Swiper option | Values | Default | Description |
324
- | ------------------------------------------ | ------------------------------ | ------------ | ------- | ------------------------------------------------- |
325
- | `waterfall-coverflow-effect-rotate` | `coverflowEffect.rotate` | number (deg) | `50` | Rotation of the side slides. |
326
- | `waterfall-coverflow-effect-stretch` | `coverflowEffect.stretch` | number (px) | `0` | Space between slides. |
327
- | `waterfall-coverflow-effect-depth` | `coverflowEffect.depth` | number (px) | `100` | Depth offset (Z translation). |
328
- | `waterfall-coverflow-effect-scale` | `coverflowEffect.scale` | number | `1` | Scale of the side slides. |
329
- | `waterfall-coverflow-effect-modifier` | `coverflowEffect.modifier` | number | `1` | Multiplier applied to rotate, depth, and stretch. |
330
- | `waterfall-coverflow-effect-slide-shadows` | `coverflowEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
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. |
331
330
  <!-- /reference:effects:1 -->
332
331
 
333
- **Cube** (`waterfall-effect="cube"`)
332
+ **Cube** (`wtf-effect="cube"`)
334
333
 
335
334
  <!-- reference:effects:2 -->
336
- | Attribute | Swiper option | Values | Default | Description |
337
- | ------------------------------------- | ------------------------- | ----------- | ------- | ------------------------------------- |
338
- | `waterfall-cube-effect-shadow` | `cubeEffect.shadow` | boolean | `true` | Shows the main shadow under the cube. |
339
- | `waterfall-cube-effect-shadow-offset` | `cubeEffect.shadowOffset` | number (px) | `20` | Offset of the main shadow. |
340
- | `waterfall-cube-effect-shadow-scale` | `cubeEffect.shadowScale` | number | `0.94` | Scale of the main shadow. |
341
- | `waterfall-cube-effect-slide-shadows` | `cubeEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
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. |
342
341
  <!-- /reference:effects:2 -->
343
342
 
344
- **Flip** (`waterfall-effect="flip"`)
343
+ **Flip** (`wtf-effect="flip"`)
345
344
 
346
345
  <!-- reference:effects:3 -->
347
- | Attribute | Swiper option | Values | Default | Description |
348
- | -------------------------------------- | -------------------------- | ------- | ------- | --------------------------------------- |
349
- | `waterfall-flip-effect-limit-rotation` | `flipEffect.limitRotation` | boolean | `true` | Limits the rotation of the edge slides. |
350
- | `waterfall-flip-effect-slide-shadows` | `flipEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
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. |
351
350
  <!-- /reference:effects:3 -->
352
351
 
353
- **Cards** (`waterfall-effect="cards"`)
352
+ **Cards** (`wtf-effect="cards"`)
354
353
 
355
354
  <!-- reference:effects:4 -->
356
- | Attribute | Swiper option | Values | Default | Description |
357
- | ----------------------------------------- | ---------------------------- | ------------ | ------- | ------------------------------ |
358
- | `waterfall-cards-effect-per-slide-offset` | `cardsEffect.perSlideOffset` | number (px) | `8` | Offset between stacked cards. |
359
- | `waterfall-cards-effect-per-slide-rotate` | `cardsEffect.perSlideRotate` | number (deg) | `2` | Rotation of each stacked card. |
360
- | `waterfall-cards-effect-rotate` | `cardsEffect.rotate` | boolean | `true` | Rotates the cards. |
361
- | `waterfall-cards-effect-slide-shadows` | `cardsEffect.slideShadows` | boolean | `true` | Shows shadows on the cards. |
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. |
362
361
  <!-- /reference:effects:4 -->
363
362
 
364
363
  ### Free Mode
365
364
 
366
365
  <!-- reference:free-mode:0 -->
367
- | Attribute | Swiper option | Values | Default | Description |
368
- | --------------------------------------------- | -------------------------------- | ------- | ------- | -------------------------------------------------------- |
369
- | `waterfall-free-mode-enabled` | `freeMode.enabled` | boolean | `false` | Slides move freely without snapping to positions. |
370
- | `waterfall-free-mode-sticky` | `freeMode.sticky` | boolean | `false` | Snaps to the nearest slide once the momentum ends. |
371
- | `waterfall-free-mode-momentum` | `freeMode.momentum` | boolean | `true` | Slides keep moving after release. |
372
- | `waterfall-free-mode-momentum-ratio` | `freeMode.momentumRatio` | number | `1` | Higher values increase the momentum distance. |
373
- | `waterfall-free-mode-momentum-velocity-ratio` | `freeMode.momentumVelocityRatio` | number | `1` | Higher values increase the momentum speed. |
374
- | `waterfall-free-mode-momentum-bounce` | `freeMode.momentumBounce` | boolean | `true` | Bounces at the edges after momentum. |
375
- | `waterfall-free-mode-momentum-bounce-ratio` | `freeMode.momentumBounceRatio` | number | `1` | Higher values increase the bounce effect. |
376
- | `waterfall-free-mode-minimum-velocity` | `freeMode.minimumVelocity` | number | `0.02` | Minimum touchmove velocity required to trigger momentum. |
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. |
377
376
  <!-- /reference:free-mode:0 -->
378
377
 
379
378
  ### Grid
380
379
 
381
380
  <!-- reference:grid:0 -->
382
- | Attribute | Swiper option | Values | Default | Description |
383
- | --------------------- | ------------- | ----------------- | -------- | --------------------------------------------------- |
384
- | `waterfall-grid-rows` | `grid.rows` | number | `1` | Number of slide rows. Works best without loop mode. |
385
- | `waterfall-grid-fill` | `grid.fill` | `row` \| `column` | `column` | Whether slides fill the grid by row or by column. |
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. |
386
385
  <!-- /reference:grid:0 -->
387
386
 
388
387
  ### Thumbs
389
388
 
390
- Links a main slider to a separate thumbnail slider. Add the attributes to the **main** slider; the value of `waterfall-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.
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.
391
390
 
392
391
  ```html
393
- <div waterfall="gallery" waterfall-thumbs-swiper="gallery-thumbs">…</div>
394
- <div waterfall="gallery-thumbs" waterfall-slides-per-view="4" waterfall-watch-slides-progress="true">…</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>
395
394
  ```
396
395
 
397
396
  <!-- reference:thumbs:0 -->
398
- | Attribute | Swiper option | Values | Default | Description |
399
- | ------------------------------------------- | ------------------------------ | -------------- | --------------------------- | -------------------------------------------------------------------------------------------- |
400
- | `waterfall-thumbs-swiper` | `thumbs.swiper` | Waterfall name | — | Name of the thumbnail slider to link. |
401
- | `waterfall-thumbs-auto-scroll-offset` | `thumbs.autoScrollOffset` | number | `0` | Offset from the edge at which the thumbnail slider scrolls to keep the active thumb visible. |
402
- | `waterfall-thumbs-multiple-active-thumbs` | `thumbs.multipleActiveThumbs` | boolean | `true` | With multiple slides per view, highlights every thumb that is visible in the main slider. |
403
- | `waterfall-thumbs-slide-thumb-active-class` | `thumbs.slideThumbActiveClass` | string | `swiper-slide-thumb-active` | Class added to the active thumbnail. |
404
- | `waterfall-thumbs-thumbs-container-class` | `thumbs.thumbsContainerClass` | string | `swiper-thumbs` | Class added to the thumbnail slider container. |
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. |
405
404
  <!-- /reference:thumbs:0 -->
406
405
 
407
406
  ### Controller
408
407
 
409
- Makes one slider drive another. The value of `waterfall-controller-control` is the name of the Waterfall to control. The controlled slider is initialized first. For two-way sync, add `waterfall-controller-control` to both sliders.
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.
410
409
 
411
410
  <!-- reference:controller:0 -->
412
- | Attribute | Swiper option | Values | Default | Description |
413
- | ------------------------------ | -------------------- | ---------------------- | ------- | -------------------------------------------------------------------------------- |
414
- | `waterfall-controller-control` | `controller.control` | Waterfall name | — | Name of the slider to control. |
415
- | `waterfall-controller-by` | `controller.by` | `slide` \| `container` | `slide` | Syncs by slide index (`slide`) or by proportional scroll position (`container`). |
416
- | `waterfall-controller-inverse` | `controller.inverse` | boolean | `false` | Moves the controlled slider in the opposite direction. |
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. |
417
416
  <!-- /reference:controller:0 -->
418
417
 
419
418
  ### Touch & Swiping
420
419
 
421
420
  <!-- reference:touch-swiping:0 -->
422
- | Attribute | Swiper option | Values | Default | Description |
423
- | --------------------------------------------- | -------------------------------- | ------------------------ | ------------------------------------------------------- | --------------------------------------------------------------------------------- |
424
- | `waterfall-allow-touch-move` | `allowTouchMove` | boolean | `true` | Set to `false` to turn off swiping; only navigation and pagination remain. |
425
- | `waterfall-simulate-touch` | `simulateTouch` | boolean | `true` | Lets desktop users drag slides with the mouse. |
426
- | `waterfall-grab-cursor` | `grabCursor` | boolean | `false` | Shows a "grab" cursor on hover. |
427
- | `waterfall-follow-finger` | `followFinger` | boolean | `true` | Slides follow the finger during a swipe. When `false`, they move only on release. |
428
- | `waterfall-slide-to-clicked-slide` | `slideToClickedSlide` | boolean | `false` | Clicking a slide transitions to it. |
429
- | `waterfall-threshold` | `threshold` | number (px) | `5` | Minimum drag distance before a swipe starts. |
430
- | `waterfall-touch-ratio` | `touchRatio` | number | `1` | Touch sensitivity multiplier. |
431
- | `waterfall-touch-angle` | `touchAngle` | number (deg) | `45` | Maximum angle at which a touch counts as a swipe. |
432
- | `waterfall-short-swipes` | `shortSwipes` | boolean | `true` | Allows quick, short swipes to change slides. |
433
- | `waterfall-long-swipes` | `longSwipes` | boolean | `true` | Allows long swipes to change slides. |
434
- | `waterfall-long-swipes-ms` | `longSwipesMs` | number (ms) | `300` | Minimum duration for a long swipe. |
435
- | `waterfall-long-swipes-ratio` | `longSwipesRatio` | number | `0.5` | Fraction of the slide width a long swipe must cover to change slides. |
436
- | `waterfall-resistance` | `resistance` | boolean | `true` | Adds rubber-band resistance at the edges. |
437
- | `waterfall-resistance-ratio` | `resistanceRatio` | number | `0.85` | Strength of edge resistance. |
438
- | `waterfall-edge-swipe-detection` | `edgeSwipeDetection` | boolean | `false` | Releases touches near the screen edge so the browser's back/forward swipe works. |
439
- | `waterfall-edge-swipe-threshold` | `edgeSwipeThreshold` | number (px) | `20` | Width of the edge area used for edge swipe detection. |
440
- | `waterfall-touch-events-target` | `touchEventsTarget` | `wrapper` \| `container` | `wrapper` | Element that listens for touch events. |
441
- | `waterfall-touch-move-stop-propagation` | `touchMoveStopPropagation` | boolean | `false` | Stops `touchmove` events from propagating. |
442
- | `waterfall-touch-release-on-edges` | `touchReleaseOnEdges` | boolean | `false` | Releases touch events at the slider edges so the page can scroll. |
443
- | `waterfall-touch-start-prevent-default` | `touchStartPreventDefault` | boolean | `true` | Prevents default on `pointerdown` (blocks text selection while dragging). |
444
- | `waterfall-touch-start-force-prevent-default` | `touchStartForcePreventDefault` | boolean | `false` | Always prevents default on `touchstart`. |
445
- | `waterfall-prevent-clicks` | `preventClicks` | boolean | `true` | Prevents accidental link clicks while swiping. |
446
- | `waterfall-prevent-clicks-propagation` | `preventClicksPropagation` | boolean | `true` | Stops click events from propagating while swiping. |
447
- | `waterfall-prevent-interaction-on-transition` | `preventInteractionOnTransition` | boolean | `false` | Blocks interaction while a transition is running. |
448
- | `waterfall-no-swiping` | `noSwiping` | boolean | `true` | Turns on swipe blocking for elements matching the no-swiping class or selector. |
449
- | `waterfall-no-swiping-class` | `noSwipingClass` | string | `swiper-no-swiping` | Swiping is blocked on elements with this class. |
450
- | `waterfall-no-swiping-selector` | `noSwipingSelector` | CSS selector | — | Swiping is blocked on elements matching this selector (overrides the class). |
451
- | `waterfall-focusable-elements` | `focusableElements` | CSS selector | `input, select, option, textarea, button, video, label` | Elements that keep native focus behavior instead of starting a swipe. |
452
- | `waterfall-swipe-handler` | `swipeHandler` | CSS selector | — | Restricts swiping to this handle element. |
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. |
453
452
  <!-- /reference:touch-swiping:0 -->
454
453
 
455
454
  ### Keyboard Control
456
455
 
457
456
  <!-- reference:keyboard-control:0 -->
458
- | Attribute | Swiper option | Values | Default | Description |
459
- | ------------------------------------- | ------------------------- | ------- | ------- | ---------------------------------------------------------- |
460
- | `waterfall-keyboard-enabled` | `keyboard.enabled` | boolean | `false` | Arrow keys control the slider. |
461
- | `waterfall-keyboard-only-in-viewport` | `keyboard.onlyInViewport` | boolean | `true` | Responds to keys only while the slider is in the viewport. |
462
- | `waterfall-keyboard-page-up-down` | `keyboard.pageUpDown` | boolean | `true` | Page Up / Page Down also navigate. |
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. |
463
462
  <!-- /reference:keyboard-control:0 -->
464
463
 
465
464
  ### Mousewheel Control
466
465
 
467
466
  <!-- reference:mousewheel-control:0 -->
468
- | Attribute | Swiper option | Values | Default | Description |
469
- | ------------------------------------------ | ------------------------------ | ---------------------------------------- | ---------------------- | --------------------------------------------------------------------- |
470
- | `waterfall-mousewheel-enabled` | `mousewheel.enabled` | boolean | `false` | The mouse wheel controls the slider. |
471
- | `waterfall-mousewheel-force-to-axis` | `mousewheel.forceToAxis` | boolean | `false` | Only responds to wheel movement along the slider's direction. |
472
- | `waterfall-mousewheel-invert` | `mousewheel.invert` | boolean | `false` | Inverts the scroll direction. |
473
- | `waterfall-mousewheel-release-on-edges` | `mousewheel.releaseOnEdges` | boolean | `false` | Lets the page scroll once the slider reaches its first or last slide. |
474
- | `waterfall-mousewheel-sensitivity` | `mousewheel.sensitivity` | number | `1` | Wheel sensitivity multiplier. |
475
- | `waterfall-mousewheel-threshold-delta` | `mousewheel.thresholdDelta` | number | — | Minimum wheel delta needed to trigger a slide change. |
476
- | `waterfall-mousewheel-threshold-time` | `mousewheel.thresholdTime` | number (ms) | — | Minimum time between wheel-triggered slide changes. |
477
- | `waterfall-mousewheel-events-target` | `mousewheel.eventsTarget` | `container` \| `wrapper` \| CSS selector | `container` | Element that listens for wheel events. |
478
- | `waterfall-mousewheel-no-mousewheel-class` | `mousewheel.noMousewheelClass` | string | `swiper-no-mousewheel` | The mouse wheel is ignored over elements with this class. |
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. |
479
478
  <!-- /reference:mousewheel-control:0 -->
480
479
 
481
480
  ### Hash Navigation
@@ -483,10 +482,10 @@ Makes one slider drive another. The value of `waterfall-controller-control` is t
483
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.
484
483
 
485
484
  <!-- reference:hash-navigation:0 -->
486
- | Attribute | Swiper option | Values | Default | Description |
487
- | ----------------------------------------- | ----------------------------- | ------- | ------- | ---------------------------------------------------------------------- |
488
- | `waterfall-hash-navigation-watch-state` | `hashNavigation.watchState` | boolean | `false` | Changes slides when the hash changes (e.g. browser back/forward). |
489
- | `waterfall-hash-navigation-replace-state` | `hashNavigation.replaceState` | boolean | `false` | Replaces the history entry instead of adding a new one on each change. |
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. |
490
489
  <!-- /reference:hash-navigation:0 -->
491
490
 
492
491
  ### History Navigation
@@ -494,39 +493,39 @@ Syncs the active slide with the URL hash. Add `data-hash="my-slide"` to each sli
494
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.
495
494
 
496
495
  <!-- reference:history-navigation:0 -->
497
- | Attribute | Swiper option | Values | Default | Description |
498
- | --------------------------------- | ---------------------- | ------- | -------- | ------------------------------------------------------- |
499
- | `waterfall-history-key` | `history.key` | string | `slides` | URL segment placed before the slide name. |
500
- | `waterfall-history-root` | `history.root` | string | `""` | Base URL path for history entries. |
501
- | `waterfall-history-replace-state` | `history.replaceState` | boolean | `false` | Replaces the history entry instead of adding a new one. |
502
- | `waterfall-history-keep-query` | `history.keepQuery` | boolean | `false` | Keeps the URL query parameters when the URL is updated. |
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. |
503
502
  <!-- /reference:history-navigation:0 -->
504
503
 
505
504
  ### Zoom
506
505
 
507
- 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. `waterfall-zoom-max-ratio="4"`).
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"`).
508
507
 
509
508
  <!-- reference:zoom:0 -->
510
- | Attribute | Swiper option | Values | Default | Description |
511
- | --------------------------------------- | -------------------------- | ------- | ----------------------- | ------------------------------------------ |
512
- | `waterfall-zoom-max-ratio` | `zoom.maxRatio` | number | `3` | Maximum zoom level. |
513
- | `waterfall-zoom-min-ratio` | `zoom.minRatio` | number | `1` | Minimum zoom level. |
514
- | `waterfall-zoom-toggle` | `zoom.toggle` | boolean | `true` | Double-tap toggles zoom. |
515
- | `waterfall-zoom-limit-to-original-size` | `zoom.limitToOriginalSize` | boolean | `false` | Never zooms past the image's natural size. |
516
- | `waterfall-zoom-pan-on-mouse-move` | `zoom.panOnMouseMove` | boolean | `false` | Pans the zoomed image by moving the mouse. |
517
- | `waterfall-zoom-container-class` | `zoom.containerClass` | string | `swiper-zoom-container` | Class of the zoom container element. |
518
- | `waterfall-zoom-zoomed-slide-class` | `zoom.zoomedSlideClass` | string | `swiper-slide-zoomed` | Class added to the zoomed slide. |
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. |
519
518
  <!-- /reference:zoom:0 -->
520
519
 
521
520
  ### Parallax
522
521
 
523
522
  <!-- reference:parallax:0 -->
524
- | Attribute | Swiper option | Values | Default | Description |
525
- | ---------------------------- | ------------------ | ------- | ------- | ------------------------------------------------- |
526
- | `waterfall-parallax-enabled` | `parallax.enabled` | boolean | `false` | Turns on parallax for elements inside the slider. |
523
+ | Attribute | Swiper option | Values | Default | Description |
524
+ | ---------------------- | ------------------ | ------- | ------- | ------------------------------------------------- |
525
+ | `wtf-parallax-enabled` | `parallax.enabled` | boolean | `false` | Turns on parallax for elements inside the slider. |
527
526
  <!-- /reference:parallax:0 -->
528
527
 
529
- Set `waterfall-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.
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.
530
529
 
531
530
  <!-- reference:parallax:1 -->
532
531
  | Attribute | Values | Description |
@@ -545,10 +544,10 @@ Set `waterfall-parallax-enabled="true"`, then add SwiperJS's native parallax att
545
544
  Add `loading="lazy"` to slide images (Webflow does this by default). Swiper can preload images in neighboring slides.
546
545
 
547
546
  <!-- reference:lazy-loading:0 -->
548
- | Attribute | Swiper option | Values | Default | Description |
549
- | ---------------------------------- | --------------------- | ------ | ----------------------- | -------------------------------------------------------------------------------- |
550
- | `waterfall-lazy-preload-prev-next` | `lazyPreloadPrevNext` | number | `0` | Number of slides before and after the active slide whose lazy images load early. |
551
- | `waterfall-lazy-preloader-class` | `lazyPreloaderClass` | string | `swiper-lazy-preloader` | Class of the preloader element that is removed once the image loads. |
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. |
552
551
  <!-- /reference:lazy-loading:0 -->
553
552
 
554
553
  ### Accessibility (a11y)
@@ -556,37 +555,37 @@ Add `loading="lazy"` to slide images (Webflow does this by default). Swiper can
556
555
  Accessibility is **on by default**. Message attributes support the `{{index}}` and `{{slidesLength}}` placeholders.
557
556
 
558
557
  <!-- reference:accessibility-a11y:0 -->
559
- | Attribute | Swiper option | Values | Default | Description |
560
- | --------------------------------------------------- | -------------------------------------- | ------- | ------------------------------ | ---------------------------------------------------------------------- |
561
- | `waterfall-a11y-enabled` | `a11y.enabled` | boolean | `true` | Turns accessibility features on or off. |
562
- | `waterfall-a11y-prev-slide-message` | `a11y.prevSlideMessage` | string | `Previous slide` | Label for the previous button. |
563
- | `waterfall-a11y-next-slide-message` | `a11y.nextSlideMessage` | string | `Next slide` | Label for the next button. |
564
- | `waterfall-a11y-first-slide-message` | `a11y.firstSlideMessage` | string | `This is the first slide` | Announced on the first slide. |
565
- | `waterfall-a11y-last-slide-message` | `a11y.lastSlideMessage` | string | `This is the last slide` | Announced on the last slide. |
566
- | `waterfall-a11y-pagination-bullet-message` | `a11y.paginationBulletMessage` | string | `Go to slide {{index}}` | Label for each pagination bullet. |
567
- | `waterfall-a11y-slide-label-message` | `a11y.slideLabelMessage` | string | `{{index}} / {{slidesLength}}` | `aria-label` for each slide. |
568
- | `waterfall-a11y-container-message` | `a11y.containerMessage` | string | — | `aria-label` for the slider container. |
569
- | `waterfall-a11y-container-role` | `a11y.containerRole` | string | — | `role` for the slider container. |
570
- | `waterfall-a11y-container-role-description-message` | `a11y.containerRoleDescriptionMessage` | string | — | `aria-roledescription` for the container (e.g. `carousel`). |
571
- | `waterfall-a11y-item-role-description-message` | `a11y.itemRoleDescriptionMessage` | string | — | `aria-roledescription` for each slide (e.g. `slide`). |
572
- | `waterfall-a11y-slide-role` | `a11y.slideRole` | string | `group` | `role` for each slide. |
573
- | `waterfall-a11y-id` | `a11y.id` | string | _(random)_ | ID for the wrapper, used by `aria-controls` on the navigation buttons. |
574
- | `waterfall-a11y-notification-class` | `a11y.notificationClass` | string | `swiper-notification` | Class of the live-region element used for announcements. |
575
- | `waterfall-a11y-scroll-on-focus` | `a11y.scrollOnFocus` | boolean | `true` | Scrolls to a slide when it receives keyboard focus. |
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. |
576
575
  <!-- /reference:accessibility-a11y:0 -->
577
576
 
578
577
  ### Observer
579
578
 
580
579
  <!-- reference:observer:0 -->
581
- | Attribute | Swiper option | Values | Default | Description |
582
- | ----------------------------------- | ---------------------- | ------- | ------- | ---------------------------------------------------------------------------------------------------- |
583
- | `waterfall-observer` | `observer` | boolean | `false` | Re-initializes the slider when its style or slides change. Useful for sliders inside tabs or modals. |
584
- | `waterfall-observe-parents` | `observeParents` | boolean | `false` | Also watches parent elements for changes. |
585
- | `waterfall-observe-slide-children` | `observeSlideChildren` | boolean | `false` | Also watches for changes inside slides. |
586
- | `waterfall-resize-observer` | `resizeObserver` | boolean | `true` | Uses ResizeObserver to detect container size changes. |
587
- | `waterfall-update-on-window-resize` | `updateOnWindowResize` | boolean | `true` | Recalculates the layout when the window is resized. |
588
- | `waterfall-watch-overflow` | `watchOverflow` | boolean | `true` | Disables the slider and hides navigation when there aren't enough slides to scroll. |
589
- | `waterfall-watch-slides-progress` | `watchSlidesProgress` | boolean | `false` | Tracks each slide's progress and adds visibility classes. Required on thumbnail sliders. |
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. |
590
589
  <!-- /reference:observer:0 -->
591
590
 
592
591
  ### CSS Classes
@@ -594,17 +593,17 @@ Accessibility is **on by default**. Message attributes support the `{{index}}` a
594
593
  Override the classes Swiper uses. Leave these at their defaults unless your markup uses different class names.
595
594
 
596
595
  <!-- reference:css-classes:0 -->
597
- | Attribute | Swiper option | Default |
598
- | ------------------------------------- | ------------------------ | ---------------------------- |
599
- | `waterfall-container-modifier-class` | `containerModifierClass` | `swiper-` |
600
- | `waterfall-wrapper-class` | `wrapperClass` | `swiper-wrapper` |
601
- | `waterfall-slide-class` | `slideClass` | `swiper-slide` |
602
- | `waterfall-slide-active-class` | `slideActiveClass` | `swiper-slide-active` |
603
- | `waterfall-slide-next-class` | `slideNextClass` | `swiper-slide-next` |
604
- | `waterfall-slide-prev-class` | `slidePrevClass` | `swiper-slide-prev` |
605
- | `waterfall-slide-visible-class` | `slideVisibleClass` | `swiper-slide-visible` |
606
- | `waterfall-slide-fully-visible-class` | `slideFullyVisibleClass` | `swiper-slide-fully-visible` |
607
- | `waterfall-slide-blank-class` | `slideBlankClass` | `swiper-slide-blank` |
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` |
608
607
  <!-- /reference:css-classes:0 -->
609
608
 
610
609
  ### Advanced
@@ -612,37 +611,37 @@ Override the classes Swiper uses. Leave these at their defaults unless your mark
612
611
  Rarely needed. Some of these can break other features, so change them only if you know you need to.
613
612
 
614
613
  <!-- reference:advanced:0 -->
615
- | Attribute | Swiper option | Values | Default | Description |
616
- | -------------------------------------- | ------------------------- | ------- | ------------------ | ------------------------------------------------------------------------------------------------------- |
617
- | `waterfall-enabled` | `enabled` | boolean | `true` | Set to `false` to create the slider in a disabled state. |
618
- | `waterfall-init` | `init` | boolean | `true` | Set to `false` to skip automatic initialization; call `swiper.init()` yourself. |
619
- | `waterfall-css-mode` | `cssMode` | boolean | `false` | Uses native CSS scroll-snap. Many features (effects, loop, some touch options) don't work in CSS mode. |
620
- | `waterfall-round-lengths` | `roundLengths` | boolean | `false` | Rounds slide widths and heights to whole pixels to avoid blurry text. |
621
- | `waterfall-max-backface-hidden-slides` | `maxBackfaceHiddenSlides` | number | `10` | Above this slide count, `backface-visibility: hidden` is not applied (a Safari performance workaround). |
622
- | `waterfall-passive-listeners` | `passiveListeners` | boolean | `true` | Uses passive event listeners where possible. |
623
- | `waterfall-run-callbacks-on-init` | `runCallbacksOnInit` | boolean | `true` | Fires transition callbacks on initialization. |
624
- | `waterfall-unique-nav-elements` | `uniqueNavElements` | boolean | `true` | Looks for navigation elements only inside the slider. |
625
- | `waterfall-set-wrapper-size` | `setWrapperSize` | boolean | `false` | Sets the wrapper's width/height explicitly (for old browsers without flexbox). |
626
- | `waterfall-create-elements` | `createElements` | boolean | `false` | Auto-creates navigation/pagination/scrollbar elements. Prefer building them in Webflow instead. |
627
- | `waterfall-events-prefix` | `eventsPrefix` | string | `swiper` | Prefix for DOM events emitted by the slider. |
628
- | `waterfall-swiper-element-node-name` | `swiperElementNodeName` | string | `SWIPER-CONTAINER` | Node name used to detect Swiper Element (web component) containers. |
629
- | `waterfall-url` | `url` | string | — | Page URL for server-side rendering with history navigation. |
630
- | `waterfall-user-agent` | `userAgent` | string | — | User agent for server-side rendering. |
631
- | `waterfall-virtual-translate` | `virtualTranslate` | boolean | `false` | Runs the slider without ever translating the wrapper, for building a custom slide transition. |
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. |
632
631
  <!-- /reference:advanced:0 -->
633
632
 
634
633
  ### Callbacks
635
634
 
636
635
  <!-- reference:callbacks:0 -->
637
- | Attribute | Values | Description |
638
- | --------------------------------- | -------------------- | --------------------------------------------------------- |
639
- | `waterfall-callback-slide-change` | Global function name | Calls `window[name]` every time the active slide changes. |
636
+ | Attribute | Values | Description |
637
+ | --------------------------- | -------------------- | --------------------------------------------------------- |
638
+ | `wtf-callback-slide-change` | Global function name | Calls `window[name]` every time the active slide changes. |
640
639
  <!-- /reference:callbacks:0 -->
641
640
 
642
641
  The function receives a single object:
643
642
 
644
643
  ```html
645
- <div waterfall="hero" waterfall-callback-slide-change="onHeroChange">…</div>
644
+ <div wtf-instance="hero" wtf-callback-slide-change="onHeroChange">…</div>
646
645
 
647
646
  <script>
648
647
  window.onHeroChange = ({ swiper, activeIndex, previousIndex, activeSlide, previousSlide }) => {
@@ -658,37 +657,38 @@ TypeScript users can import the parameter type: `import type { SlideChangeCallba
658
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.
659
658
 
660
659
  <!-- reference:slide-manipulation:0 -->
661
- | Attribute | Values | Description |
662
- | ------------------------- | -------------- | ---------------------------------------------------------------------------------------------------------- |
663
- | `waterfall-append-slide` | Waterfall name | Adds this element as the last slide. |
664
- | `waterfall-prepend-slide` | Waterfall name | Adds this element as the first slide. |
665
- | `waterfall-add-slide` | Waterfall name | Inserts this element at the position given by `waterfall-add-index`. |
666
- | `waterfall-add-index` | number | Position for `waterfall-add-slide` (defaults to `1`). |
667
- | `waterfall-remove-slide` | Waterfall name | Removes the slide at `waterfall-remove-index` from the target slider. This element itself is also removed. |
668
- | `waterfall-remove-index` | number | Index of the slide to remove. |
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. |
669
668
  <!-- /reference:slide-manipulation:0 -->
670
669
 
671
670
  ```html
672
- <div waterfall-append-slide="SWIPER_NAME" class="cta-card">Contact us</div>
671
+ <div wtf-append-slide="SWIPER_NAME" class="cta-card">Contact us</div>
673
672
  ```
674
673
 
675
674
  ## Element Reference
676
675
 
677
- Elements are identified with the `waterfall-el` attribute and must be placed **inside** the `[waterfall]` wrapper, so each slider finds its own controls.
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.
678
677
 
679
678
  <!-- reference:element-reference:0 -->
680
- | `waterfall-el` value | Purpose |
681
- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
682
- | `navigation-next` | Next slide button. Enables navigation. |
683
- | `navigation-prev` | Previous slide button. Enables navigation. |
684
- | `pagination` | Pagination container. Enables pagination. |
685
- | `pagination-bullet` | Optional bullet template. Donates its **tag name** and its **classes** to every generated bullet; `waterfall-pagination-bullet-class` overrides the classes. |
686
- | `scrollbar` | Scrollbar track. Enables the scrollbar. |
687
- | `scrollbar-drag` | Optional drag handle template inside `scrollbar`. Donates its **classes** to the handle Swiper builds; `waterfall-scrollbar-drag-class` overrides them. |
688
- | `slide-count` | Placed inside a slide; its text is replaced with that slide's 1-based number. |
689
- | `autoplay-control` | Play/pause button. See [Autoplay Control Button](#autoplay-control-button). |
690
- | `autoplay-control-play` | Icon shown while autoplay is paused. |
691
- | `autoplay-control-pause` | Icon shown while autoplay is playing. |
679
+ | `wtf-el` value | Purpose |
680
+ | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
681
+ | `navigation-next` | Next slide button. Enables navigation. |
682
+ | `navigation-prev` | Previous slide button. Enables navigation. |
683
+ | `pagination` | Pagination container. Enables pagination. |
684
+ | `pagination-bullet` | Optional bullet template. Donates its **tag name** and its **classes** to every generated bullet. |
685
+ | `pagination-bullet-active` | Optional active-bullet template beside `pagination-bullet`. Donates the **one class it adds** on top of that bullet to the active bullet. |
686
+ | `scrollbar` | Scrollbar track. Enables the scrollbar. |
687
+ | `scrollbar-drag` | Optional drag handle template inside `scrollbar`. Donates its **classes** to the handle, which Swiper then finds by those classes and reuses in place. |
688
+ | `slide-count` | Placed inside a slide; its text is replaced with that slide's 1-based number. |
689
+ | `autoplay-control` | Play/pause button. See [Autoplay Control Button](#autoplay-control-button). |
690
+ | `autoplay-control-play` | Icon shown while autoplay is paused. |
691
+ | `autoplay-control-pause` | Icon shown while autoplay is playing. |
692
692
  <!-- /reference:element-reference:0 -->
693
693
 
694
694
  ## JavaScript API
@@ -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 `waterfall-callback-slide-change` or the [JavaScript API](#javascript-api))
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
@@ -718,6 +718,20 @@ npm install
718
718
  npm run build
719
719
  ```
720
720
 
721
+ | Script | What it does |
722
+ | ----------------------- | -------------------------------------------------------------------------------------------- |
723
+ | `npm run build` | Builds both bundles, syncs the version above, and regenerates the reference tables. |
724
+ | `npm run reference` | Regenerates the tables in this file from `scripts/reference-data.json`. |
725
+ | `npm run reference:check` | The non-writing form, for CI. |
726
+ | `npm run tsc` | Typecheck. |
727
+ | `npm run lint` | Lint. |
728
+
729
+ `scripts/reference-data.json` is the source of truth for the tables above — edit it, not the generated
730
+ markdown. The same script audits those tables against the constants in `src/lib` and **fails the build**
731
+ if a module reads an attribute the docs do not describe, or if a documented attribute has no constant
732
+ behind it. A constant that is neither read nor documented only warns, so a new dead export shows up
733
+ without breaking anything.
734
+
721
735
  ## Built With
722
736
 
723
737
  - [SwiperJS <!-- swiper-version -->14.4.0<!-- /swiper-version -->](https://github.com/nolimits4web/swiper)