well-waterfall 1.3.1 → 1.4.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 +13 -12
- package/dist/lib/attributes.d.ts +3 -20
- package/dist/well-waterfall.es.js +1569 -1586
- package/dist/well-waterfall.es.js.map +1 -1
- package/dist/well-waterfall.umd.js +3 -3
- package/dist/well-waterfall.umd.js.map +1 -1
- package/package.json +1 -1
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.3.
|
|
12
|
+
Current version: **v<!-- version -->1.3.2<!-- /version -->** · Bundled SwiperJS: **<!-- swiper-version -->11.2.10<!-- /swiper-version -->**
|
|
13
13
|
|
|
14
14
|
## Table of contents
|
|
15
15
|
|
|
@@ -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.3.
|
|
69
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/well-waterfall@1.3.2"></script>
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
**Latest Version**
|
|
@@ -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
|
|
package/dist/lib/attributes.d.ts
CHANGED
|
@@ -20,26 +20,9 @@ export declare const ATTR_A11Y_PREV_SLIDE_MESSAGE = "waterfall-a11y-prev-slide-m
|
|
|
20
20
|
export declare const ATTR_A11Y_SCROLL_ON_FOCUS = "waterfall-a11y-scroll-on-focus";
|
|
21
21
|
export declare const ATTR_A11Y_SLIDE_LABEL_MESSAGE = "waterfall-a11y-slide-label-message";
|
|
22
22
|
export declare const ATTR_A11Y_SLIDE_ROLE = "waterfall-a11y-slide-role";
|
|
23
|
-
export declare const
|
|
24
|
-
export
|
|
25
|
-
export declare const
|
|
26
|
-
export declare const ATTR_LMOBILE_SPACE_BETWEEN = "waterfall-space-between-lmobile";
|
|
27
|
-
export declare const ATTR_TABLET_CENTERED_SLIDES = "waterfall-centered-slides-tablet";
|
|
28
|
-
export declare const ATTR_TABLET_SLIDES_PER_VIEW = "waterfall-slides-per-view-tablet";
|
|
29
|
-
export declare const ATTR_TABLET_SLIDES_PER_GROUP = "waterfall-slides-per-group-tablet";
|
|
30
|
-
export declare const ATTR_TABLET_SPACE_BETWEEN = "waterfall-space-between-tablet";
|
|
31
|
-
export declare const ATTR_DESKTOP_CENTERED_SLIDES = "waterfall-centered-slides-desktop";
|
|
32
|
-
export declare const ATTR_DESKTOP_SLIDES_PER_VIEW = "waterfall-slides-per-view-desktop";
|
|
33
|
-
export declare const ATTR_DESKTOP_SLIDES_PER_GROUP = "waterfall-slides-per-group-desktop";
|
|
34
|
-
export declare const ATTR_DESKTOP_SPACE_BETWEEN = "waterfall-space-between-desktop";
|
|
35
|
-
export declare const ATTR_LARGE_CENTERED_SLIDES = "waterfall-centered-slides-large";
|
|
36
|
-
export declare const ATTR_LARGE_SLIDES_PER_VIEW = "waterfall-slides-per-view-large";
|
|
37
|
-
export declare const ATTR_LARGE_SLIDES_PER_GROUP = "waterfall-slides-per-group-large";
|
|
38
|
-
export declare const ATTR_LARGE_SPACE_BETWEEN = "waterfall-space-between-large";
|
|
39
|
-
export declare const ATTR_XLARGE_CENTERED_SLIDES = "waterfall-centered-slides-xlarge";
|
|
40
|
-
export declare const ATTR_XLARGE_SLIDES_PER_VIEW = "waterfall-slides-per-view-xlarge";
|
|
41
|
-
export declare const ATTR_XLARGE_SLIDES_PER_GROUP = "waterfall-slides-per-group-xlarge";
|
|
42
|
-
export declare const ATTR_XLARGE_SPACE_BETWEEN = "waterfall-space-between-xlarge";
|
|
23
|
+
export declare const BREAKPOINTS: readonly ["mobile", "mobile-large", "tablet", "desktop", "desktop-small", "desktop-large"];
|
|
24
|
+
export type Breakpoint = (typeof BREAKPOINTS)[number];
|
|
25
|
+
export declare const breakpointAttr: (attr: string, breakpoint: Breakpoint) => string;
|
|
43
26
|
export declare const ATTR_CONTROLLER = "waterfall-controller";
|
|
44
27
|
export declare const ATTR_CONTROLLER_BY = "waterfall-controller-by";
|
|
45
28
|
export declare const ATTR_CONTROLLER_INVERSE = "waterfall-controller-inverse";
|