well-waterfall 1.4.1 → 1.5.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,7 +9,7 @@ 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.4.1<!-- /version -->** · Bundled SwiperJS: **<!-- swiper-version -->14.3.0<!-- /swiper-version -->**
12
+ Current version: **v<!-- version -->1.5.0<!-- /version -->** · Bundled SwiperJS: **<!-- swiper-version -->14.4.0<!-- /swiper-version -->**
13
13
 
14
14
  ## Table of contents
15
15
 
@@ -57,7 +57,7 @@ Current version: **v<!-- version -->1.4.1<!-- /version -->** · Bundled SwiperJS
57
57
 
58
58
  ## Dependencies
59
59
 
60
- Waterfall bundles SwiperJS <!-- swiper-version -->14.3.0<!-- /swiper-version --> (JavaScript and CSS) directly. If you already load SwiperJS on your site, you can remove it and just use Waterfall.
60
+ Waterfall bundles SwiperJS <!-- swiper-version -->14.4.0<!-- /swiper-version --> (JavaScript and CSS) directly. If you already load SwiperJS on your site, you can remove it and just use Waterfall.
61
61
 
62
62
  ## Installation
63
63
 
@@ -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.4.1"></script>
69
+ <script type="module" src="https://cdn.jsdelivr.net/npm/well-waterfall@1.5.0"></script>
70
70
  ```
71
71
 
72
72
  **Latest Version**
@@ -81,7 +81,13 @@ Use the Wellspring App to install the code onto your site. If you are installing
81
81
  npm install well-waterfall
82
82
  ```
83
83
 
84
- Once loaded, the console prints `🚿 Hello from Wellspring Waterfall vX.Y.Z`, so you can confirm which version is running.
84
+ To use the attribute and element names in your own tools without loading Swiper or the runtime, import them from `well-waterfall/attributes`:
85
+
86
+ ```js
87
+ import { ATTR_WATERFALL, EL_NAVIGATION_NEXT, breakpointAttr } from "well-waterfall/attributes";
88
+ ```
89
+
90
+ Once loaded, the console prints `🚿 Hello from Wellspring Waterfall (vX.Y.Z)`, so you can confirm which version is running.
85
91
 
86
92
  ## Usage
87
93
 
@@ -110,7 +116,7 @@ Waterfall uses the standard SwiperJS markup with an added wrapper element that c
110
116
  <div waterfall-el="pagination"></div>
111
117
  <button waterfall-el="navigation-prev">Prev</button>
112
118
  <button waterfall-el="navigation-next">Next</button>
113
- <div waterfall-el="scrollbar"><div waterfall-el="scrollbar-drag"></div></div>
119
+ <div waterfall-el="scrollbar"></div>
114
120
  </div>
115
121
  ```
116
122
 
@@ -121,7 +127,7 @@ Waterfalls initialize on `DOMContentLoaded`.
121
127
  ## How Attributes Work
122
128
 
123
129
  - **Placement.** Unless noted otherwise, attributes go on the `[waterfall]` wrapper element.
124
- - **Naming.** Each attribute is named after its SwiperJS parameter in kebab-case with a `waterfall-` prefix. Example: `direction` → `waterfall-direction`. Parameters inside an object include the group name: `freeMode.enabled` → `waterfall-free-mode-enabled`. A few attributes use shorter names; the tables below list the exact names.
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.
125
131
  - **Value types.**
126
132
  - `boolean`: the literal text `true` or `false`. Any other value is ignored.
127
133
  - `number`: a plain number without units (`24`, not `24px`).
@@ -135,36 +141,42 @@ The attribute names are also exported as constants from `src/lib/attributes.ts`
135
141
 
136
142
  ### Core
137
143
 
144
+ <!-- reference:core:0 -->
138
145
  | Attribute | Swiper option | Values | Default | Description |
139
146
  | ------------------------- | -------------- | ------- | ------------ | ----------------------------------------------------------------------------------------------------------------------- |
140
147
  | `waterfall` | — | string | _(required)_ | Unique name for this slider. Marks the element as a Waterfall. |
141
148
  | `waterfall-debug-mode` | — | boolean | `false` | Logs the generated config and initialization details to the console. |
142
149
  | `waterfall-initial-slide` | `initialSlide` | number | `0` | Index of the slide to show first. |
143
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. |
151
+ <!-- /reference:core:0 -->
144
152
 
145
153
  ### Layout
146
154
 
147
- | Attribute | Swiper option | Values | Default | Description |
148
- | -------------------------------------- | -------------------------- | -------------------------- | ------------ | -------------------------------------------------------------------------------------------------------------- |
149
- | `waterfall-direction` | `direction` | `horizontal` \| `vertical` | `horizontal` | Slide direction. |
150
- | `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. |
151
- | `waterfall-slides-per-group` | `slidesPerGroup` | number | `1` | Number of slides to advance per navigation step. |
152
- | `waterfall-slides-per-group-skip` | `slidesPerGroupSkip` | number | `0` | Number of initial slides that advance one at a time before grouping starts. |
153
- | `waterfall-slides-per-group-auto` | `slidesPerGroupAuto` | boolean | `false` | With `slidesPerView: auto`, advances by the number of slides currently visible. |
154
- | `waterfall-space-between` | `spaceBetween` | number (px) | `0` | Gap between slides. |
155
- | `waterfall-centered-slides` | `centeredSlides` | boolean | `false` | Centers the active slide instead of aligning it to the left or top. |
156
- | `waterfall-center-insufficient-slides` | `centerInsufficientSlides` | boolean | `false` | Centers the slides when there are fewer than `slidesPerView`. |
157
- | `waterfall-normalize-slide-index` | `normalizeSlideIndex` | boolean | `true` | Normalizes the active slide index when using `slidesPerGroup`. |
158
- | `waterfall-auto-height` | `autoHeight` | boolean | `false` | Resizes the slider height to match the active slide. |
159
- | `waterfall-slides-offset-before` | `slidesOffsetBefore` | number (px) | `0` | Extra space before the first slide. |
160
- | `waterfall-slides-offset-after` | `slidesOffsetAfter` | number (px) | `0` | Extra space after the last slide. |
161
- | `waterfall-width` | `width` | number (px) | — | Forces a slider width. Useful only when the slider is hidden on init. |
162
- | `waterfall-height` | `height` | number (px) | — | Forces a slider height. Useful only when the slider is hidden on init. |
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. |
173
+ <!-- /reference:layout:0 -->
163
174
 
164
175
  ### Responsive Breakpoints
165
176
 
166
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.
167
178
 
179
+ <!-- reference:responsive-breakpoints:0 -->
168
180
  | Suffix | Webflow breakpoint | Applies to | Falls back to |
169
181
  | ---------------- | ------------------ | --------------- | ---------------------------------- |
170
182
  | `-mobile` | Mobile portrait | 479px and below | `-mobile-large`, `-tablet`, base |
@@ -173,7 +185,9 @@ Breakpoints match Webflow's breakpoints and cascade the same way Webflow styles
173
185
  | `-desktop` | Desktop | 992px and up | base |
174
186
  | `-desktop-small` | 1280px | 1280px and up | `-desktop`, base |
175
187
  | `-desktop-large` | 1440px | 1440px and up | `-desktop-small`, `-desktop`, base |
188
+ <!-- /reference:responsive-breakpoints:0 -->
176
189
 
190
+ <!-- reference:responsive-breakpoints:1 -->
177
191
  | Attribute pattern | Swiper option | Values | Description |
178
192
  | ----------------------------------------- | ----------------- | ----------------------- | ------------------------------------------------------------------------------------------------- |
179
193
  | `waterfall-slides-per-view-{breakpoint}` | `slidesPerView` | number | Slides visible at this breakpoint, or `auto`. |
@@ -181,45 +195,55 @@ Breakpoints match Webflow's breakpoints and cascade the same way Webflow styles
181
195
  | `waterfall-space-between-{breakpoint}` | `spaceBetween` | number (px) | Gap between slides at this breakpoint. |
182
196
  | `waterfall-centered-slides-{breakpoint}` | `centeredSlides` | boolean | Centers the active slide at this breakpoint. |
183
197
  | `waterfall-breakpoints-base` | `breakpointsBase` | `window` \| `container` | Measures breakpoints against the window width (default `window`) or the slider container's width. |
198
+ <!-- /reference:responsive-breakpoints:1 -->
184
199
 
185
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.
186
201
 
187
202
  ### Playback (Loop, Rewind, Speed)
188
203
 
189
- | Attribute | Swiper option | Values | Default | Description |
190
- | ---------------------------------- | ---------------------- | ---------------------------- | ------- | --------------------------------------------------------------------------------------------------- |
191
- | `waterfall-playback-mode` | `loop` / `rewind` | `none` \| `loop` \| `rewind` | `none` | `loop` wraps around endlessly. `rewind` jumps back to the first slide after the last one. |
192
- | `waterfall-speed` | `speed` | number (ms) | `300` | Transition duration between slides. |
193
- | `waterfall-loop-add-blank-slides` | `loopAddBlankSlides` | boolean | `true` | With loop and grid/`slidesPerGroup`, adds blank slides when the slide count isn't evenly divisible. |
194
- | `waterfall-loop-additional-slides` | `loopAdditionalSlides` | number | `0` | Extra slides to clone for looping. |
195
- | `waterfall-loop-prevents-sliding` | `loopPreventsSliding` | boolean | `true` | Blocks navigation while the loop is repositioning slides. |
196
- | `waterfall-data-one-way-movement` | `oneWayMovement` | boolean | `false` | Swiping in either direction advances to the next slide. |
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. |
214
+ <!-- /reference:playback-loop-rewind-speed:0 -->
197
215
 
198
216
  ### Autoplay
199
217
 
200
- | Attribute | Swiper option | Values | Default | Description |
201
- | ---------------------------------- | ------------------------------- | ----------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
202
- | `waterfall-autoplay-mode` | `autoplay` | boolean | `false` | Turns autoplay on. The other autoplay attributes apply only when this is `true`. |
203
- | `waterfall-delay` | `autoplay.delay` | number (ms) | `3000` | Time between transitions. |
204
- | `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`). |
205
- | `waterfall-disable-on-interaction` | `autoplay.disableOnInteraction` | boolean | `false` | Stops autoplay permanently after the user interacts with the slider. |
206
- | `waterfall-pause-on-mouse-enter` | `autoplay.pauseOnMouseEnter` | boolean | `false` | Pauses while the pointer is over the slider. |
207
- | `waterfall-reverse-direction` | `autoplay.reverseDirection` | boolean | `false` | Autoplays backwards. |
208
- | `waterfall-stop-on-last-slide` | `autoplay.stopOnLastSlide` | boolean | `false` | Stops on the last slide. Has no effect in loop mode. |
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. |
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`. |
229
+ <!-- /reference:autoplay:0 -->
209
230
 
210
231
  ### Autoplay Control Button
211
232
 
212
- A play/pause toggle for autoplaying sliders. It requires `waterfall-autoplay-mode="true"` and all three [elements](#element-reference) (`autoplay-control`, `autoplay-control-play`, `autoplay-control-pause`) inside the wrapper. The button shows the pause icon while playing and the play icon while paused.
233
+ A play/pause toggle for autoplaying sliders. It requires `waterfall-autoplay="true"` and all three [elements](#element-reference) (`autoplay-control`, `autoplay-control-play`, `autoplay-control-pause`) inside the wrapper. The button shows the pause icon while playing and the play icon while paused.
213
234
 
235
+ <!-- reference:autoplay-control-button:0 -->
214
236
  | Attribute | Values | Default | Description |
215
237
  | ------------------------------------------ | --------------------- | --------- | ------------------------------------------------------- |
216
238
  | `waterfall-autoplay-control-enabled` | boolean | `false` | Turns on the play/pause button. |
217
239
  | `waterfall-autoplay-control-default-state` | `playing` \| `paused` | `playing` | Whether autoplay starts running or paused on page load. |
240
+ <!-- /reference:autoplay-control-button:0 -->
218
241
 
219
242
  ### Navigation
220
243
 
221
244
  Navigation turns on automatically when a `navigation-next` or `navigation-prev` [element](#element-reference) is found inside the wrapper.
222
245
 
246
+ <!-- reference:navigation:0 -->
223
247
  | Attribute | Swiper option | Values | Default | Description |
224
248
  | ------------------------------------------------ | ------------------------------------ | ------- | ---------------------------- | ----------------------------------------------------------------- |
225
249
  | `waterfall-navigation-enabled` | `navigation.enabled` | boolean | _(auto)_ | Set to `false` to turn navigation off even when buttons exist. |
@@ -230,11 +254,13 @@ Navigation turns on automatically when a `navigation-next` or `navigation-prev`
230
254
  | `waterfall-navigation-hidden-class` | `navigation.hiddenClass` | string | `swiper-button-hidden` | Class added to hidden buttons. |
231
255
  | `waterfall-navigation-lock-class` | `navigation.lockClass` | string | `swiper-button-lock` | Class added when navigation is locked (not enough slides). |
232
256
  | `waterfall-navigation-navigation-disabled-class` | `navigation.navigationDisabledClass` | string | `swiper-navigation-disabled` | Class added to the container when navigation is disabled. |
257
+ <!-- /reference:navigation:0 -->
233
258
 
234
259
  ### Pagination
235
260
 
236
- Pagination turns on when a `pagination` [element](#element-reference) is found inside the wrapper. To style bullets in Webflow, add a `pagination-bullet` element: Waterfall copies its tag name and classes onto every generated bullet.
261
+ Pagination turns on when a `pagination` [element](#element-reference) is found inside the wrapper. To change the tag used for bullets, add a `pagination-bullet` element and Waterfall uses its tag name. Set the bullet class with `waterfall-pagination-bullet-class`.
237
262
 
263
+ <!-- reference:pagination:0 -->
238
264
  | Attribute | Swiper option | Values | Default | Description |
239
265
  | ------------------------------------------------- | ------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------ |
240
266
  | `waterfall-pagination-type` | `pagination.type` | `bullets` \| `numberBullets` \| `fraction` \| `progressbar` \| `custom` | `bullets` | Pagination style. `numberBullets` shows bullets containing the slide number. |
@@ -256,11 +282,14 @@ Pagination turns on when a `pagination` [element](#element-reference) is found i
256
282
  | `waterfall-pagination-pagination-disabled-class` | `pagination.paginationDisabledClass` | string | `swiper-pagination-disabled` | Class added when pagination is disabled. |
257
283
  | `waterfall-pagination-progressbar-fill-class` | `pagination.progressbarFillClass` | string | `swiper-pagination-progressbar-fill` | Class on the progress bar fill. |
258
284
  | `waterfall-pagination-progressbar-opposite-class` | `pagination.progressbarOppositeClass` | string | `swiper-pagination-progressbar-opposite` | Class added with an opposite progress bar. |
285
+ | `waterfall-pagination-bullet-class` | `pagination.bulletClass` | string | `swiper-pagination-bullet` | Class applied to every generated bullet. |
286
+ <!-- /reference:pagination:0 -->
259
287
 
260
288
  ### Scrollbar
261
289
 
262
- The scrollbar turns on when a `scrollbar` [element](#element-reference) is found inside the wrapper. The drag handle's class is taken from the `scrollbar-drag` element inside it.
290
+ The scrollbar turns on when a `scrollbar` [element](#element-reference) is found inside the wrapper. Swiper creates the drag handle itself; style it with `waterfall-scrollbar-drag-class`.
263
291
 
292
+ <!-- reference:scrollbar:0 -->
264
293
  | Attribute | Swiper option | Values | Default | Description |
265
294
  | ---------------------------------------------- | ---------------------------------- | --------------------- | ----------------------------- | ---------------------------------------------------------------------- |
266
295
  | `waterfall-scrollbar-enabled` | `scrollbar.enabled` | boolean | _(auto)_ | Set to `false` to turn the scrollbar off even when the element exists. |
@@ -272,53 +301,67 @@ The scrollbar turns on when a `scrollbar` [element](#element-reference) is found
272
301
  | `waterfall-scrollbar-vertical-class` | `scrollbar.verticalClass` | string | `swiper-scrollbar-vertical` | Class added for vertical sliders. |
273
302
  | `waterfall-scrollbar-lock-class` | `scrollbar.lockClass` | string | `swiper-scrollbar-lock` | Class added when the scrollbar is locked (not enough slides). |
274
303
  | `waterfall-scrollbar-scrollbar-disabled-class` | `scrollbar.scrollbarDisabledClass` | string | `swiper-scrollbar-disabled` | Class added when the scrollbar is disabled. |
304
+ | `waterfall-scrollbar-drag-class` | `scrollbar.dragClass` | string | `swiper-scrollbar-drag` | Class applied to the drag handle. |
305
+ <!-- /reference:scrollbar:0 -->
275
306
 
276
307
  ### Effects
277
308
 
278
- | Attribute | Swiper option | Values | Default | Description |
279
- | ------------------ | ------------- | --------------------------------------------------------------- | ------- | ------------------------------------------------------------ |
280
- | `waterfall-effect` | `effect` | `slide` \| `fade` \| `cube` \| `coverflow` \| `flip` \| `cards` | `slide` | Transition effect. `fade` always cross-fades between slides. |
309
+ <!-- reference:effects:0 -->
310
+ | Attribute | Swiper option | Values | Default | Description |
311
+ | ---------------------------- | ----------------- | --------------------------------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
312
+ | `waterfall-effect` | `effect` | `slide` \| `fade` \| `cube` \| `coverflow` \| `flip` \| `cards` | `slide` | Transition effect. Tune `fade` with `waterfall-fade-effect-mode`. |
313
+ | `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. |
314
+ <!-- /reference:effects:0 -->
281
315
 
282
316
  The settings below apply only when the matching effect is selected.
283
317
 
284
318
  **Coverflow** (`waterfall-effect="coverflow"`)
285
319
 
286
- | Attribute | Swiper option | Values | Default | Description |
287
- | ----------------------------------- | ------------------------------ | ------------ | ------- | ------------------------------------------------- |
288
- | `waterfall-coverflow-rotate` | `coverflowEffect.rotate` | number (deg) | `50` | Rotation of the side slides. |
289
- | `waterfall-coverflow-stretch` | `coverflowEffect.stretch` | number (px) | `0` | Space between slides. |
290
- | `waterfall-coverflow-depth` | `coverflowEffect.depth` | number (px) | `100` | Depth offset (Z translation). |
291
- | `waterfall-coverflow-scale` | `coverflowEffect.scale` | number | `1` | Scale of the side slides. |
292
- | `waterfall-coverflow-modifier` | `coverflowEffect.modifier` | number | `1` | Multiplier applied to rotate, depth, and stretch. |
293
- | `waterfall-coverflow-slide-shadows` | `coverflowEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
320
+ <!-- reference:effects:1 -->
321
+ | Attribute | Swiper option | Values | Default | Description |
322
+ | ------------------------------------------ | ------------------------------ | ------------ | ------- | ------------------------------------------------- |
323
+ | `waterfall-coverflow-effect-rotate` | `coverflowEffect.rotate` | number (deg) | `50` | Rotation of the side slides. |
324
+ | `waterfall-coverflow-effect-stretch` | `coverflowEffect.stretch` | number (px) | `0` | Space between slides. |
325
+ | `waterfall-coverflow-effect-depth` | `coverflowEffect.depth` | number (px) | `100` | Depth offset (Z translation). |
326
+ | `waterfall-coverflow-effect-scale` | `coverflowEffect.scale` | number | `1` | Scale of the side slides. |
327
+ | `waterfall-coverflow-effect-modifier` | `coverflowEffect.modifier` | number | `1` | Multiplier applied to rotate, depth, and stretch. |
328
+ | `waterfall-coverflow-effect-slide-shadows` | `coverflowEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
329
+ <!-- /reference:effects:1 -->
294
330
 
295
331
  **Cube** (`waterfall-effect="cube"`)
296
332
 
297
- | Attribute | Swiper option | Values | Default | Description |
298
- | ------------------------------ | ------------------------- | ----------- | ------- | ------------------------------------- |
299
- | `waterfall-cube-shadow` | `cubeEffect.shadow` | boolean | `true` | Shows the main shadow under the cube. |
300
- | `waterfall-cube-shadow-offset` | `cubeEffect.shadowOffset` | number (px) | `20` | Offset of the main shadow. |
301
- | `waterfall-cube-shadow-scale` | `cubeEffect.shadowScale` | number | `0.94` | Scale of the main shadow. |
302
- | `waterfall-cube-slide-shadows` | `cubeEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
333
+ <!-- reference:effects:2 -->
334
+ | Attribute | Swiper option | Values | Default | Description |
335
+ | ------------------------------------- | ------------------------- | ----------- | ------- | ------------------------------------- |
336
+ | `waterfall-cube-effect-shadow` | `cubeEffect.shadow` | boolean | `true` | Shows the main shadow under the cube. |
337
+ | `waterfall-cube-effect-shadow-offset` | `cubeEffect.shadowOffset` | number (px) | `20` | Offset of the main shadow. |
338
+ | `waterfall-cube-effect-shadow-scale` | `cubeEffect.shadowScale` | number | `0.94` | Scale of the main shadow. |
339
+ | `waterfall-cube-effect-slide-shadows` | `cubeEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
340
+ <!-- /reference:effects:2 -->
303
341
 
304
342
  **Flip** (`waterfall-effect="flip"`)
305
343
 
306
- | Attribute | Swiper option | Values | Default | Description |
307
- | ------------------------------- | -------------------------- | ------- | ------- | --------------------------------------- |
308
- | `waterfall-flip-limit-rotation` | `flipEffect.limitRotation` | boolean | `true` | Limits the rotation of the edge slides. |
309
- | `waterfall-flip-slide-shadows` | `flipEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
344
+ <!-- reference:effects:3 -->
345
+ | Attribute | Swiper option | Values | Default | Description |
346
+ | -------------------------------------- | -------------------------- | ------- | ------- | --------------------------------------- |
347
+ | `waterfall-flip-effect-limit-rotation` | `flipEffect.limitRotation` | boolean | `true` | Limits the rotation of the edge slides. |
348
+ | `waterfall-flip-effect-slide-shadows` | `flipEffect.slideShadows` | boolean | `true` | Shows shadows on the slides. |
349
+ <!-- /reference:effects:3 -->
310
350
 
311
351
  **Cards** (`waterfall-effect="cards"`)
312
352
 
313
- | Attribute | Swiper option | Values | Default | Description |
314
- | ---------------------------------- | ---------------------------- | ------------ | ------- | ------------------------------ |
315
- | `waterfall-cards-per-slide-offset` | `cardsEffect.perSlideOffset` | number (px) | `8` | Offset between stacked cards. |
316
- | `waterfall-cards-per-slide-rotate` | `cardsEffect.perSlideRotate` | number (deg) | `2` | Rotation of each stacked card. |
317
- | `waterfall-cards-rotate` | `cardsEffect.rotate` | boolean | `true` | Rotates the cards. |
318
- | `waterfall-cards-slide-shadows` | `cardsEffect.slideShadows` | boolean | `true` | Shows shadows on the cards. |
353
+ <!-- reference:effects:4 -->
354
+ | Attribute | Swiper option | Values | Default | Description |
355
+ | ----------------------------------------- | ---------------------------- | ------------ | ------- | ------------------------------ |
356
+ | `waterfall-cards-effect-per-slide-offset` | `cardsEffect.perSlideOffset` | number (px) | `8` | Offset between stacked cards. |
357
+ | `waterfall-cards-effect-per-slide-rotate` | `cardsEffect.perSlideRotate` | number (deg) | `2` | Rotation of each stacked card. |
358
+ | `waterfall-cards-effect-rotate` | `cardsEffect.rotate` | boolean | `true` | Rotates the cards. |
359
+ | `waterfall-cards-effect-slide-shadows` | `cardsEffect.slideShadows` | boolean | `true` | Shows shadows on the cards. |
360
+ <!-- /reference:effects:4 -->
319
361
 
320
362
  ### Free Mode
321
363
 
364
+ <!-- reference:free-mode:0 -->
322
365
  | Attribute | Swiper option | Values | Default | Description |
323
366
  | --------------------------------------------- | -------------------------------- | ------- | ------- | -------------------------------------------------------- |
324
367
  | `waterfall-free-mode-enabled` | `freeMode.enabled` | boolean | `false` | Slides move freely without snapping to positions. |
@@ -329,43 +372,51 @@ The settings below apply only when the matching effect is selected.
329
372
  | `waterfall-free-mode-momentum-bounce` | `freeMode.momentumBounce` | boolean | `true` | Bounces at the edges after momentum. |
330
373
  | `waterfall-free-mode-momentum-bounce-ratio` | `freeMode.momentumBounceRatio` | number | `1` | Higher values increase the bounce effect. |
331
374
  | `waterfall-free-mode-minimum-velocity` | `freeMode.minimumVelocity` | number | `0.02` | Minimum touchmove velocity required to trigger momentum. |
375
+ <!-- /reference:free-mode:0 -->
332
376
 
333
377
  ### Grid
334
378
 
379
+ <!-- reference:grid:0 -->
335
380
  | Attribute | Swiper option | Values | Default | Description |
336
381
  | --------------------- | ------------- | ----------------- | -------- | --------------------------------------------------- |
337
382
  | `waterfall-grid-rows` | `grid.rows` | number | `1` | Number of slide rows. Works best without loop mode. |
338
383
  | `waterfall-grid-fill` | `grid.fill` | `row` \| `column` | `column` | Whether slides fill the grid by row or by column. |
384
+ <!-- /reference:grid:0 -->
339
385
 
340
386
  ### Thumbs
341
387
 
342
- Links a main slider to a separate thumbnail slider. Add the attributes to the **main** slider; the value of `waterfall-thumbs` 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.
388
+ 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.
343
389
 
344
390
  ```html
345
- <div waterfall="gallery" waterfall-thumbs="gallery-thumbs">…</div>
391
+ <div waterfall="gallery" waterfall-thumbs-swiper="gallery-thumbs">…</div>
346
392
  <div waterfall="gallery-thumbs" waterfall-slides-per-view="4" waterfall-watch-slides-progress="true">…</div>
347
393
  ```
348
394
 
349
- | Attribute | Swiper option | Values | Default | Description |
350
- | ----------------------------------------- | ------------------------------ | -------------- | --------------------------- | -------------------------------------------------------------------------------------------- |
351
- | `waterfall-thumbs` | `thumbs.swiper` | Waterfall name | — | Name of the thumbnail slider to link. |
352
- | `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. |
353
- | `waterfall-thumbs-multiple-active-thumbs` | `thumbs.multipleActiveThumbs` | boolean | `true` | With multiple slides per view, highlights every thumb that is visible in the main slider. |
354
- | `waterfall-slide-thumb-active-class` | `thumbs.slideThumbActiveClass` | string | `swiper-slide-thumb-active` | Class added to the active thumbnail. |
355
- | `waterfall-thumbs-container-class` | `thumbs.thumbsContainerClass` | string | `swiper-thumbs` | Class added to the thumbnail slider container. |
395
+ <!-- reference:thumbs:0 -->
396
+ | Attribute | Swiper option | Values | Default | Description |
397
+ | ------------------------------------------- | ------------------------------ | -------------- | --------------------------- | -------------------------------------------------------------------------------------------- |
398
+ | `waterfall-thumbs-swiper` | `thumbs.swiper` | Waterfall name | — | Name of the thumbnail slider to link. |
399
+ | `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. |
400
+ | `waterfall-thumbs-multiple-active-thumbs` | `thumbs.multipleActiveThumbs` | boolean | `true` | With multiple slides per view, highlights every thumb that is visible in the main slider. |
401
+ | `waterfall-thumbs-slide-thumb-active-class` | `thumbs.slideThumbActiveClass` | string | `swiper-slide-thumb-active` | Class added to the active thumbnail. |
402
+ | `waterfall-thumbs-thumbs-container-class` | `thumbs.thumbsContainerClass` | string | `swiper-thumbs` | Class added to the thumbnail slider container. |
403
+ <!-- /reference:thumbs:0 -->
356
404
 
357
405
  ### Controller
358
406
 
359
- Makes one slider drive another. The value of `waterfall-controller` is the name of the Waterfall to control. The controlled slider is initialized first. For two-way sync, add `waterfall-controller` to both sliders.
407
+ 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.
360
408
 
409
+ <!-- reference:controller:0 -->
361
410
  | Attribute | Swiper option | Values | Default | Description |
362
411
  | ------------------------------ | -------------------- | ---------------------- | ------- | -------------------------------------------------------------------------------- |
363
- | `waterfall-controller` | `controller.control` | Waterfall name | — | Name of the slider to control. |
412
+ | `waterfall-controller-control` | `controller.control` | Waterfall name | — | Name of the slider to control. |
364
413
  | `waterfall-controller-by` | `controller.by` | `slide` \| `container` | `slide` | Syncs by slide index (`slide`) or by proportional scroll position (`container`). |
365
414
  | `waterfall-controller-inverse` | `controller.inverse` | boolean | `false` | Moves the controlled slider in the opposite direction. |
415
+ <!-- /reference:controller:0 -->
366
416
 
367
417
  ### Touch & Swiping
368
418
 
419
+ <!-- reference:touch-swiping:0 -->
369
420
  | Attribute | Swiper option | Values | Default | Description |
370
421
  | --------------------------------------------- | -------------------------------- | ------------------------ | ------------------------------------------------------- | --------------------------------------------------------------------------------- |
371
422
  | `waterfall-allow-touch-move` | `allowTouchMove` | boolean | `true` | Set to `false` to turn off swiping; only navigation and pagination remain. |
@@ -397,53 +448,63 @@ Makes one slider drive another. The value of `waterfall-controller` is the name
397
448
  | `waterfall-no-swiping-selector` | `noSwipingSelector` | CSS selector | — | Swiping is blocked on elements matching this selector (overrides the class). |
398
449
  | `waterfall-focusable-elements` | `focusableElements` | CSS selector | `input, select, option, textarea, button, video, label` | Elements that keep native focus behavior instead of starting a swipe. |
399
450
  | `waterfall-swipe-handler` | `swipeHandler` | CSS selector | — | Restricts swiping to this handle element. |
451
+ <!-- /reference:touch-swiping:0 -->
400
452
 
401
453
  ### Keyboard Control
402
454
 
455
+ <!-- reference:keyboard-control:0 -->
403
456
  | Attribute | Swiper option | Values | Default | Description |
404
457
  | ------------------------------------- | ------------------------- | ------- | ------- | ---------------------------------------------------------- |
405
458
  | `waterfall-keyboard-enabled` | `keyboard.enabled` | boolean | `false` | Arrow keys control the slider. |
406
459
  | `waterfall-keyboard-only-in-viewport` | `keyboard.onlyInViewport` | boolean | `true` | Responds to keys only while the slider is in the viewport. |
407
460
  | `waterfall-keyboard-page-up-down` | `keyboard.pageUpDown` | boolean | `true` | Page Up / Page Down also navigate. |
461
+ <!-- /reference:keyboard-control:0 -->
408
462
 
409
463
  ### Mousewheel Control
410
464
 
411
- | Attribute | Swiper option | Values | Default | Description |
412
- | -------------------------------------- | ------------------------------ | ---------------------------------------- | ---------------------- | --------------------------------------------------------------------- |
413
- | `waterfall-mouse-enabled` | `mousewheel.enabled` | boolean | `false` | The mouse wheel controls the slider. |
414
- | `waterfall-mouse-force-to-axis` | `mousewheel.forceToAxis` | boolean | `false` | Only responds to wheel movement along the slider's direction. |
415
- | `waterfall-mouse-invert` | `mousewheel.invert` | boolean | `false` | Inverts the scroll direction. |
416
- | `waterfall-mouse-release-on-edges` | `mousewheel.releaseOnEdges` | boolean | `false` | Lets the page scroll once the slider reaches its first or last slide. |
417
- | `waterfall-mouse-sensitivity` | `mousewheel.sensitivity` | number | `1` | Wheel sensitivity multiplier. |
418
- | `waterfall-mouse-threshold-delta` | `mousewheel.thresholdDelta` | number | — | Minimum wheel delta needed to trigger a slide change. |
419
- | `waterfall-mouse-threshold-time` | `mousewheel.thresholdTime` | number (ms) | — | Minimum time between wheel-triggered slide changes. |
420
- | `waterfall-mouse-events-target` | `mousewheel.eventsTarget` | `container` \| `wrapper` \| CSS selector | `container` | Element that listens for wheel events. |
421
- | `waterfall-mouse-no-mouse-wheel-class` | `mousewheel.noMousewheelClass` | string | `swiper-no-mousewheel` | The mouse wheel is ignored over elements with this class. |
465
+ <!-- reference:mousewheel-control:0 -->
466
+ | Attribute | Swiper option | Values | Default | Description |
467
+ | ------------------------------------------ | ------------------------------ | ---------------------------------------- | ---------------------- | --------------------------------------------------------------------- |
468
+ | `waterfall-mousewheel-enabled` | `mousewheel.enabled` | boolean | `false` | The mouse wheel controls the slider. |
469
+ | `waterfall-mousewheel-force-to-axis` | `mousewheel.forceToAxis` | boolean | `false` | Only responds to wheel movement along the slider's direction. |
470
+ | `waterfall-mousewheel-invert` | `mousewheel.invert` | boolean | `false` | Inverts the scroll direction. |
471
+ | `waterfall-mousewheel-release-on-edges` | `mousewheel.releaseOnEdges` | boolean | `false` | Lets the page scroll once the slider reaches its first or last slide. |
472
+ | `waterfall-mousewheel-sensitivity` | `mousewheel.sensitivity` | number | `1` | Wheel sensitivity multiplier. |
473
+ | `waterfall-mousewheel-threshold-delta` | `mousewheel.thresholdDelta` | number | — | Minimum wheel delta needed to trigger a slide change. |
474
+ | `waterfall-mousewheel-threshold-time` | `mousewheel.thresholdTime` | number (ms) | — | Minimum time between wheel-triggered slide changes. |
475
+ | `waterfall-mousewheel-events-target` | `mousewheel.eventsTarget` | `container` \| `wrapper` \| CSS selector | `container` | Element that listens for wheel events. |
476
+ | `waterfall-mousewheel-no-mousewheel-class` | `mousewheel.noMousewheelClass` | string | `swiper-no-mousewheel` | The mouse wheel is ignored over elements with this class. |
477
+ <!-- /reference:mousewheel-control:0 -->
422
478
 
423
479
  ### Hash Navigation
424
480
 
425
481
  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.
426
482
 
427
- | Attribute | Swiper option | Values | Default | Description |
428
- | ------------------------------ | ----------------------------- | ------- | ------- | ---------------------------------------------------------------------- |
429
- | `waterfall-hash-watch-state` | `hashNavigation.watchState` | boolean | `false` | Changes slides when the hash changes (e.g. browser back/forward). |
430
- | `waterfall-hash-replace-state` | `hashNavigation.replaceState` | boolean | `false` | Replaces the history entry instead of adding a new one on each change. |
483
+ <!-- reference:hash-navigation:0 -->
484
+ | Attribute | Swiper option | Values | Default | Description |
485
+ | ----------------------------------------- | ----------------------------- | ------- | ------- | ---------------------------------------------------------------------- |
486
+ | `waterfall-hash-navigation-watch-state` | `hashNavigation.watchState` | boolean | `false` | Changes slides when the hash changes (e.g. browser back/forward). |
487
+ | `waterfall-hash-navigation-replace-state` | `hashNavigation.replaceState` | boolean | `false` | Replaces the history entry instead of adding a new one on each change. |
488
+ <!-- /reference:hash-navigation:0 -->
431
489
 
432
490
  ### History Navigation
433
491
 
434
492
  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.
435
493
 
494
+ <!-- reference:history-navigation:0 -->
436
495
  | Attribute | Swiper option | Values | Default | Description |
437
496
  | --------------------------------- | ---------------------- | ------- | -------- | ------------------------------------------------------- |
438
497
  | `waterfall-history-key` | `history.key` | string | `slides` | URL segment placed before the slide name. |
439
498
  | `waterfall-history-root` | `history.root` | string | `""` | Base URL path for history entries. |
440
499
  | `waterfall-history-replace-state` | `history.replaceState` | boolean | `false` | Replaces the history entry instead of adding a new one. |
441
500
  | `waterfall-history-keep-query` | `history.keepQuery` | boolean | `false` | Keeps the URL query parameters when the URL is updated. |
501
+ <!-- /reference:history-navigation:0 -->
442
502
 
443
503
  ### Zoom
444
504
 
445
505
  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"`).
446
506
 
507
+ <!-- reference:zoom:0 -->
447
508
  | Attribute | Swiper option | Values | Default | Description |
448
509
  | --------------------------------------- | -------------------------- | ------- | ----------------------- | ------------------------------------------ |
449
510
  | `waterfall-zoom-max-ratio` | `zoom.maxRatio` | number | `3` | Maximum zoom level. |
@@ -452,16 +513,20 @@ Double-tap or pinch to zoom. Wrap each slide's image in `<div class="swiper-zoom
452
513
  | `waterfall-zoom-limit-to-original-size` | `zoom.limitToOriginalSize` | boolean | `false` | Never zooms past the image's natural size. |
453
514
  | `waterfall-zoom-pan-on-mouse-move` | `zoom.panOnMouseMove` | boolean | `false` | Pans the zoomed image by moving the mouse. |
454
515
  | `waterfall-zoom-container-class` | `zoom.containerClass` | string | `swiper-zoom-container` | Class of the zoom container element. |
455
- | `waterfall-zoomed-slide-class` | `zoom.zoomedSlideClass` | string | `swiper-slide-zoomed` | Class added to the zoomed slide. |
516
+ | `waterfall-zoom-zoomed-slide-class` | `zoom.zoomedSlideClass` | string | `swiper-slide-zoomed` | Class added to the zoomed slide. |
517
+ <!-- /reference:zoom:0 -->
456
518
 
457
519
  ### Parallax
458
520
 
521
+ <!-- reference:parallax:0 -->
459
522
  | Attribute | Swiper option | Values | Default | Description |
460
523
  | ---------------------------- | ------------------ | ------- | ------- | ------------------------------------------------- |
461
524
  | `waterfall-parallax-enabled` | `parallax.enabled` | boolean | `false` | Turns on parallax for elements inside the slider. |
525
+ <!-- /reference:parallax:0 -->
462
526
 
463
527
  With parallax on, add SwiperJS's native parallax attributes to elements **inside** the slides (or on a background element inside `.swiper`):
464
528
 
529
+ <!-- reference:parallax:1 -->
465
530
  | Attribute | Values | Description |
466
531
  | ------------------------------- | ----------------------------- | ---------------------------------------------------------------------------- |
467
532
  | `data-swiper-parallax` | px or % (e.g. `-300`, `-50%`) | Horizontal offset for horizontal sliders, vertical offset for vertical ones. |
@@ -470,20 +535,24 @@ With parallax on, add SwiperJS's native parallax attributes to elements **inside
470
535
  | `data-swiper-parallax-scale` | number | Scale while the slide is out of view. |
471
536
  | `data-swiper-parallax-opacity` | number (0–1) | Opacity while the slide is out of view. |
472
537
  | `data-swiper-parallax-duration` | number (ms) | Custom transition duration for this element. |
538
+ <!-- /reference:parallax:1 -->
473
539
 
474
540
  ### Lazy Loading
475
541
 
476
542
  Add `loading="lazy"` to slide images (Webflow does this by default). Swiper can preload images in neighboring slides.
477
543
 
544
+ <!-- reference:lazy-loading:0 -->
478
545
  | Attribute | Swiper option | Values | Default | Description |
479
546
  | ---------------------------------- | --------------------- | ------ | ----------------------- | -------------------------------------------------------------------------------- |
480
547
  | `waterfall-lazy-preload-prev-next` | `lazyPreloadPrevNext` | number | `0` | Number of slides before and after the active slide whose lazy images load early. |
481
548
  | `waterfall-lazy-preloader-class` | `lazyPreloaderClass` | string | `swiper-lazy-preloader` | Class of the preloader element that is removed once the image loads. |
549
+ <!-- /reference:lazy-loading:0 -->
482
550
 
483
551
  ### Accessibility (a11y)
484
552
 
485
553
  Accessibility is **on by default**. Message attributes support the `{{index}}` and `{{slidesLength}}` placeholders.
486
554
 
555
+ <!-- reference:accessibility-a11y:0 -->
487
556
  | Attribute | Swiper option | Values | Default | Description |
488
557
  | --------------------------------------------------- | -------------------------------------- | ------- | ------------------------------ | ---------------------------------------------------------------------- |
489
558
  | `waterfall-a11y-enabled` | `a11y.enabled` | boolean | `true` | Turns accessibility features on or off. |
@@ -501,9 +570,11 @@ Accessibility is **on by default**. Message attributes support the `{{index}}` a
501
570
  | `waterfall-a11y-id` | `a11y.id` | string | _(random)_ | ID for the wrapper, used by `aria-controls` on the navigation buttons. |
502
571
  | `waterfall-a11y-notification-class` | `a11y.notificationClass` | string | `swiper-notification` | Class of the live-region element used for announcements. |
503
572
  | `waterfall-a11y-scroll-on-focus` | `a11y.scrollOnFocus` | boolean | `true` | Scrolls to a slide when it receives keyboard focus. |
573
+ <!-- /reference:accessibility-a11y:0 -->
504
574
 
505
575
  ### Observer
506
576
 
577
+ <!-- reference:observer:0 -->
507
578
  | Attribute | Swiper option | Values | Default | Description |
508
579
  | ----------------------------------- | ---------------------- | ------- | ------- | ---------------------------------------------------------------------------------------------------- |
509
580
  | `waterfall-observer` | `observer` | boolean | `false` | Re-initializes the slider when its style or slides change. Useful for sliders inside tabs or modals. |
@@ -513,11 +584,13 @@ Accessibility is **on by default**. Message attributes support the `{{index}}` a
513
584
  | `waterfall-update-on-window-resize` | `updateOnWindowResize` | boolean | `true` | Recalculates the layout when the window is resized. |
514
585
  | `waterfall-watch-overflow` | `watchOverflow` | boolean | `true` | Disables the slider and hides navigation when there aren't enough slides to scroll. |
515
586
  | `waterfall-watch-slides-progress` | `watchSlidesProgress` | boolean | `false` | Tracks each slide's progress and adds visibility classes. Required on thumbnail sliders. |
587
+ <!-- /reference:observer:0 -->
516
588
 
517
589
  ### CSS Classes
518
590
 
519
591
  Override the classes Swiper uses. Leave these at their defaults unless your markup uses different class names.
520
592
 
593
+ <!-- reference:css-classes:0 -->
521
594
  | Attribute | Swiper option | Default |
522
595
  | ------------------------------------- | ------------------------ | ---------------------------- |
523
596
  | `waterfall-container-modifier-class` | `containerModifierClass` | `swiper-` |
@@ -529,11 +602,13 @@ Override the classes Swiper uses. Leave these at their defaults unless your mark
529
602
  | `waterfall-slide-visible-class` | `slideVisibleClass` | `swiper-slide-visible` |
530
603
  | `waterfall-slide-fully-visible-class` | `slideFullyVisibleClass` | `swiper-slide-fully-visible` |
531
604
  | `waterfall-slide-blank-class` | `slideBlankClass` | `swiper-slide-blank` |
605
+ <!-- /reference:css-classes:0 -->
532
606
 
533
607
  ### Advanced
534
608
 
535
609
  Rarely needed. Some of these can break other features, so change them only if you know you need to.
536
610
 
611
+ <!-- reference:advanced:0 -->
537
612
  | Attribute | Swiper option | Values | Default | Description |
538
613
  | -------------------------------------- | ------------------------- | ------- | ------------------ | ------------------------------------------------------------------------------------------------------- |
539
614
  | `waterfall-enabled` | `enabled` | boolean | `true` | Set to `false` to create the slider in a disabled state. |
@@ -550,12 +625,16 @@ Rarely needed. Some of these can break other features, so change them only if yo
550
625
  | `waterfall-swiper-element-node-name` | `swiperElementNodeName` | string | `SWIPER-CONTAINER` | Node name used to detect Swiper Element (web component) containers. |
551
626
  | `waterfall-url` | `url` | string | — | Page URL for server-side rendering with history navigation. |
552
627
  | `waterfall-user-agent` | `userAgent` | string | — | User agent for server-side rendering. |
628
+ | `waterfall-virtual-translate` | `virtualTranslate` | boolean | `false` | Runs the slider without ever translating the wrapper, for building a custom slide transition. |
629
+ <!-- /reference:advanced:0 -->
553
630
 
554
631
  ### Callbacks
555
632
 
633
+ <!-- reference:callbacks:0 -->
556
634
  | Attribute | Values | Description |
557
635
  | --------------------------------- | -------------------- | --------------------------------------------------------- |
558
636
  | `waterfall-callback-slide-change` | Global function name | Calls `window[name]` every time the active slide changes. |
637
+ <!-- /reference:callbacks:0 -->
559
638
 
560
639
  The function receives a single object:
561
640
 
@@ -575,6 +654,7 @@ TypeScript users can import the parameter type: `import type { SlideChangeCallba
575
654
 
576
655
  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.
577
656
 
657
+ <!-- reference:slide-manipulation:0 -->
578
658
  | Attribute | Values | Description |
579
659
  | ------------------------- | -------------- | ---------------------------------------------------------------------------------------------------------- |
580
660
  | `waterfall-append-slide` | Waterfall name | Adds this element as the last slide. |
@@ -583,6 +663,7 @@ Moves elements from elsewhere on the page into a Waterfall when the page loads,
583
663
  | `waterfall-add-index` | number | Position for `waterfall-add-slide` (defaults to `1`). |
584
664
  | `waterfall-remove-slide` | Waterfall name | Removes the slide at `waterfall-remove-index` from the target slider. This element itself is also removed. |
585
665
  | `waterfall-remove-index` | number | Index of the slide to remove. |
666
+ <!-- /reference:slide-manipulation:0 -->
586
667
 
587
668
  ```html
588
669
  <div waterfall-append-slide="SWIPER_NAME" class="cta-card">Contact us</div>
@@ -592,18 +673,19 @@ Moves elements from elsewhere on the page into a Waterfall when the page loads,
592
673
 
593
674
  Elements are identified with the `waterfall-el` attribute and must be placed **inside** the `[waterfall]` wrapper, so each slider finds its own controls.
594
675
 
595
- | `waterfall-el` value | Purpose |
596
- | ------------------------ | ----------------------------------------------------------------------------------------- |
597
- | `navigation-next` | Next slide button. Enables navigation. |
598
- | `navigation-prev` | Previous slide button. Enables navigation. |
599
- | `pagination` | Pagination container. Enables pagination. |
600
- | `pagination-bullet` | Optional bullet template. Its tag name and classes are applied to every generated bullet. |
601
- | `scrollbar` | Scrollbar track. Enables the scrollbar. |
602
- | `scrollbar-drag` | Scrollbar handle, placed inside `scrollbar`. Its classes are applied to the drag handle. |
603
- | `slide-count` | Placed inside a slide; its text is replaced with that slide's 1-based number. |
604
- | `autoplay-control` | Play/pause button. See [Autoplay Control Button](#autoplay-control-button). |
605
- | `autoplay-control-play` | Icon shown while autoplay is paused. |
606
- | `autoplay-control-pause` | Icon shown while autoplay is playing. |
676
+ <!-- reference:element-reference:0 -->
677
+ | `waterfall-el` value | Purpose |
678
+ | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
679
+ | `navigation-next` | Next slide button. Enables navigation. |
680
+ | `navigation-prev` | Previous slide button. Enables navigation. |
681
+ | `pagination` | Pagination container. Enables pagination. |
682
+ | `pagination-bullet` | Optional bullet template. Its **tag name** is used for every generated bullet; set the class with `waterfall-pagination-bullet-class`. |
683
+ | `scrollbar` | Scrollbar track. Enables the scrollbar. |
684
+ | `slide-count` | Placed inside a slide; its text is replaced with that slide's 1-based number. |
685
+ | `autoplay-control` | Play/pause button. See [Autoplay Control Button](#autoplay-control-button). |
686
+ | `autoplay-control-play` | Icon shown while autoplay is paused. |
687
+ | `autoplay-control-pause` | Icon shown while autoplay is playing. |
688
+ <!-- /reference:element-reference:0 -->
607
689
 
608
690
  ## JavaScript API
609
691
 
@@ -634,7 +716,7 @@ npm run build
634
716
 
635
717
  ## Built With
636
718
 
637
- - [SwiperJS <!-- swiper-version -->14.3.0<!-- /swiper-version -->](https://github.com/nolimits4web/swiper)
719
+ - [SwiperJS <!-- swiper-version -->14.4.0<!-- /swiper-version -->](https://github.com/nolimits4web/swiper)
638
720
  - TypeScript
639
721
  - Vite
640
722