well-waterfall 1.3.1 → 1.3.2
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 +11 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -163,25 +163,26 @@ The attribute names are also exported as constants from `src/lib/attributes.ts`
|
|
|
163
163
|
|
|
164
164
|
### Responsive Breakpoints
|
|
165
165
|
|
|
166
|
-
Breakpoints match Webflow's breakpoints and
|
|
166
|
+
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
167
|
|
|
168
|
-
| Suffix
|
|
169
|
-
|
|
|
170
|
-
| `-
|
|
171
|
-
| `-
|
|
172
|
-
| `-
|
|
173
|
-
| `-
|
|
174
|
-
| `-
|
|
168
|
+
| Suffix | Webflow breakpoint | Applies to | Falls back to |
|
|
169
|
+
| ---------------- | ------------------ | --------------- | ---------------------------------- |
|
|
170
|
+
| `-mobile` | Mobile portrait | 479px and below | `-mobile-large`, `-tablet`, base |
|
|
171
|
+
| `-mobile-large` | Mobile landscape | 480px – 767px | `-tablet`, base |
|
|
172
|
+
| `-tablet` | Tablet | 768px – 991px | base |
|
|
173
|
+
| `-desktop` | Desktop | 992px and up | base |
|
|
174
|
+
| `-desktop-small` | 1280px | 1280px and up | `-desktop`, base |
|
|
175
|
+
| `-desktop-large` | 1440px | 1440px and up | `-desktop-small`, `-desktop`, base |
|
|
175
176
|
|
|
176
177
|
| Attribute pattern | Swiper option | Values | Description |
|
|
177
178
|
| ----------------------------------------- | ----------------- | ----------------------- | ------------------------------------------------------------------------------------------------- |
|
|
178
|
-
| `waterfall-slides-per-view-{breakpoint}` | `slidesPerView` | number | Slides visible at this breakpoint
|
|
179
|
+
| `waterfall-slides-per-view-{breakpoint}` | `slidesPerView` | number | Slides visible at this breakpoint, or `auto`. |
|
|
179
180
|
| `waterfall-slides-per-group-{breakpoint}` | `slidesPerGroup` | number | Slides advanced per step at this breakpoint. |
|
|
180
181
|
| `waterfall-space-between-{breakpoint}` | `spaceBetween` | number (px) | Gap between slides at this breakpoint. |
|
|
181
182
|
| `waterfall-centered-slides-{breakpoint}` | `centeredSlides` | boolean | Centers the active slide at this breakpoint. |
|
|
182
183
|
| `waterfall-breakpoints-base` | `breakpointsBase` | `window` \| `container` | Measures breakpoints against the window width (default `window`) or the slider container's width. |
|
|
183
184
|
|
|
184
|
-
Example: `waterfall-slides-per-view="
|
|
185
|
+
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.
|
|
185
186
|
|
|
186
187
|
### Playback (Loop, Rewind, Speed)
|
|
187
188
|
|