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.
Files changed (2) hide show
  1. package/README.md +11 -10
  2. 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 apply **at and above** the listed width. The base attributes (e.g. `waterfall-slides-per-view`) apply below 478px and at any breakpoint where no override is set.
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 | Applies from |
169
- | ---------- | ------------------------ |
170
- | `-lmobile` | 478px (mobile landscape) |
171
- | `-tablet` | 767px |
172
- | `-desktop` | 991px |
173
- | `-large` | 1280px |
174
- | `-xlarge` | 1440px |
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. `auto` is not supported at breakpoints. |
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="1"` + `waterfall-slides-per-view-tablet="2"` + `waterfall-slides-per-view-desktop="3"`.
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "well-waterfall",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Create Swipers in Webflow with attributes",
5
5
  "type": "module",
6
6
  "main": "./dist/well-waterfall.umd.js",