well-waterfall 1.1.10 → 1.2.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/.github/ISSUE_TEMPLATE/bug_report.yaml +64 -0
- package/README.md +65 -122
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
- package/src/lib/attributes.ts +1 -0
- package/src/modules/accessibility.ts +2 -2
- package/src/modules/advanced.ts +2 -1
- package/src/modules/breakpoints.ts +2 -1
- package/src/modules/controller.ts +4 -3
- package/src/modules/effect.ts +3 -2
- package/src/modules/freeMode.ts +2 -1
- package/src/modules/general.ts +2 -1
- package/src/modules/hashhistory.ts +3 -2
- package/src/modules/keyboard.ts +2 -1
- package/src/modules/layout.ts +5 -4
- package/src/modules/lazyLoad.ts +2 -1
- package/src/modules/mouse.ts +3 -2
- package/src/modules/navigation.ts +8 -11
- package/src/modules/observer.ts +2 -1
- package/src/modules/pagination.ts +11 -10
- package/src/modules/parallax.ts +2 -1
- package/src/modules/playback.ts +2 -1
- package/src/modules/scrollbar.ts +4 -3
- package/src/modules/thumbs.ts +2 -2
- package/src/modules/touch.ts +4 -3
- package/src/modules/zoom.ts +2 -1
- package/src/util.ts +6 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
name: 🐛 Bug Report
|
|
2
|
+
description: Report something that isn’t working as expected
|
|
3
|
+
title: "[Bug]: "
|
|
4
|
+
labels: [bug]
|
|
5
|
+
assignees: []
|
|
6
|
+
|
|
7
|
+
body:
|
|
8
|
+
- type: input
|
|
9
|
+
id: summary
|
|
10
|
+
attributes:
|
|
11
|
+
label: Summary
|
|
12
|
+
description: Briefly describe the bug
|
|
13
|
+
placeholder: "The swiper does not load on Safari..."
|
|
14
|
+
validations:
|
|
15
|
+
required: true
|
|
16
|
+
|
|
17
|
+
- type: textarea
|
|
18
|
+
id: steps
|
|
19
|
+
attributes:
|
|
20
|
+
label: Steps to Reproduce
|
|
21
|
+
description: How can we reproduce the bug?
|
|
22
|
+
placeholder: |
|
|
23
|
+
1. Go to '...'
|
|
24
|
+
2. Click on '...'
|
|
25
|
+
3. Scroll down
|
|
26
|
+
4. See error
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
|
|
30
|
+
- type: textarea
|
|
31
|
+
id: expected
|
|
32
|
+
attributes:
|
|
33
|
+
label: Expected Behavior
|
|
34
|
+
description: What should happen instead?
|
|
35
|
+
placeholder: "The swiper should autoplay..."
|
|
36
|
+
validations:
|
|
37
|
+
required: true
|
|
38
|
+
|
|
39
|
+
- type: textarea
|
|
40
|
+
id: screenshots
|
|
41
|
+
attributes:
|
|
42
|
+
label: Screenshots
|
|
43
|
+
description: If applicable, add screenshots or a video
|
|
44
|
+
placeholder: "Drag and drop images here"
|
|
45
|
+
|
|
46
|
+
- type: dropdown
|
|
47
|
+
id: browser
|
|
48
|
+
attributes:
|
|
49
|
+
label: Browser
|
|
50
|
+
options:
|
|
51
|
+
- Chrome
|
|
52
|
+
- Firefox
|
|
53
|
+
- Safari
|
|
54
|
+
- Edge
|
|
55
|
+
- Other
|
|
56
|
+
validations:
|
|
57
|
+
required: true
|
|
58
|
+
|
|
59
|
+
- type: input
|
|
60
|
+
id: environment
|
|
61
|
+
attributes:
|
|
62
|
+
label: Environment
|
|
63
|
+
description: OS, version, device
|
|
64
|
+
placeholder: "macOS 14.2, Chrome 122"
|
package/README.md
CHANGED
|
@@ -1,36 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
[](https://badge.fury.io/js/angular2-expandable-list) [](https://github.com/prettier/prettier)
|
|
2
2
|
|
|
3
3
|
# 🚿 Waterfall by Wellflow 🚿
|
|
4
4
|
|
|
5
|
-
Waterfall is a
|
|
5
|
+
Waterfall is a Javascript library for Webflow that enables developers to build sliders based on SwiperJS with attributes. The Wellflow app also helps create, edit, and manage Waterfalls with an easy to use interface with full documentation.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Other slider libraries are too expensive or have limited options. Waterfall is free, and includes nearly all of the options you can find in SwiperJS. Here's what sets Waterfall apart from other Slider solutions:
|
|
8
|
+
|
|
9
|
+
1. **Free to Use.** Waterfall is free to use - no monthly subscription.
|
|
10
|
+
2. **No Custom Code.** The Wellflow App provides endless customization options without needing to write any code.
|
|
11
|
+
3. **Full Documentation.** View definitions of each setting directly in the app.
|
|
12
|
+
4. **Turn Swipers into Components.** After creating a swiper, you can turn it into a component for reusability.
|
|
8
13
|
|
|
9
14
|
## Table of contents
|
|
10
15
|
|
|
11
16
|
- [Waterfall](#project-name)
|
|
12
17
|
- [Table of contents](#table-of-contents)
|
|
13
|
-
- [
|
|
18
|
+
- [Dependencies](#dependencies)
|
|
14
19
|
- [Installation](#installation)
|
|
20
|
+
- [Supported SwiperJS Settings](#supported-swiperjs-settings)
|
|
15
21
|
- [Usage](#usage)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- [Building a distribution version](#building-a-distribution-version)
|
|
19
|
-
- [Serving the distribution version](#serving-the-distribution-version)
|
|
20
|
-
- [API](#api)
|
|
21
|
-
- [useBasicFetch](#usebasicfetch)
|
|
22
|
-
- [Options](#options)
|
|
23
|
-
- [fetchData](#fetchdata)
|
|
24
|
-
- [Contributing](#contributing)
|
|
25
|
-
- [Credits](#credits)
|
|
22
|
+
- [Waterfall Layout](#waterfall-layout)
|
|
23
|
+
- [Attribute Naming Convention](#attribute-naming-convention)
|
|
26
24
|
- [Built With](#built-with)
|
|
27
|
-
- [Versioning](#versioning)
|
|
28
25
|
- [Authors](#authors)
|
|
29
26
|
- [License](#license)
|
|
30
27
|
|
|
31
|
-
##
|
|
28
|
+
## Dependencies
|
|
32
29
|
|
|
33
|
-
|
|
30
|
+
Waterfall bundles the latest version of SwiperJS 11.2.10 (2025-06-28) directly. If you already have a SwiperJS code snippet on your website, you can remove it and just use Waterfall.
|
|
34
31
|
|
|
35
32
|
## Installation
|
|
36
33
|
|
|
@@ -39,140 +36,86 @@ Add the code to the Footer Code (after the `</body>` tag) in the Webflow Project
|
|
|
39
36
|
**Latest Version**
|
|
40
37
|
|
|
41
38
|
```
|
|
42
|
-
<script src="https://cdn.jsdelivr.net/npm/well-waterfall
|
|
39
|
+
<script src="https://cdn.jsdelivr.net/npm/well-waterfall"></script>
|
|
43
40
|
```
|
|
44
41
|
|
|
45
|
-
**Specific (Stable)
|
|
42
|
+
**Specific Version (Stable - Recommended)**
|
|
46
43
|
|
|
47
44
|
```
|
|
48
|
-
<script src="https://cdn.jsdelivr.net/npm/well-waterfall@
|
|
45
|
+
<script src="https://cdn.jsdelivr.net/npm/well-waterfall@1.2.0"></script>
|
|
49
46
|
```
|
|
50
47
|
|
|
48
|
+
## Supported SwiperJS Settings
|
|
49
|
+
|
|
50
|
+
- All General settings
|
|
51
|
+
- Navigation
|
|
52
|
+
- Pagination
|
|
53
|
+
- Scrollbar
|
|
54
|
+
- Autoplay
|
|
55
|
+
- Free Mode
|
|
56
|
+
- Grid
|
|
57
|
+
- Manipulation
|
|
58
|
+
- Parallax
|
|
59
|
+
- Lazy Loading
|
|
60
|
+
- Effects
|
|
61
|
+
- Thumbs
|
|
62
|
+
- Zoom
|
|
63
|
+
- Keyboard Control
|
|
64
|
+
- Mousewheel Control
|
|
65
|
+
- Hash Navigation
|
|
66
|
+
- History Navigation
|
|
67
|
+
- Controller
|
|
68
|
+
- Accessibility (a11y)
|
|
69
|
+
|
|
70
|
+
**Not Supported**
|
|
71
|
+
|
|
72
|
+
- Creative Effect
|
|
73
|
+
- Virtual Slides
|
|
74
|
+
|
|
51
75
|
## Usage
|
|
52
76
|
|
|
53
|
-
|
|
77
|
+
**Use the Wellflow App**
|
|
78
|
+
This is the easiest way to manage Waterfall. The App allows you to create, edit, and modify existing Waterfalls with a convenient interface inside the Designer.
|
|
79
|
+
|
|
80
|
+
The App is currently being submitted to the App Marketplace.
|
|
81
|
+
|
|
82
|
+
## Waterfall Layout
|
|
54
83
|
|
|
55
|
-
|
|
84
|
+
The Waterfall layout uses the same layout as SwiperJS with an added "waterfall" div wrapper where the attributes are added. Swipers are initialized via the `[waterfall="SWIPER_NAME"]` attribute, where `SWIPER_NAME` is a unique identifying string.
|
|
56
85
|
|
|
57
86
|
```
|
|
58
87
|
<!-- Slider main container -->
|
|
59
|
-
<div waterfall="SWIPER_NAME">
|
|
88
|
+
<div waterfall="SWIPER_NAME" OTHER ATTRIBUTES ADDED HERE>
|
|
60
89
|
<div class="swiper">
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<div
|
|
65
|
-
<div class="swiper-slide">Slide 2</div>
|
|
66
|
-
<div class="swiper-slide">Slide 3</div>
|
|
90
|
+
<div class="swiper-wrapper">
|
|
91
|
+
<div class="swiper-slide">Slide 1</div>
|
|
92
|
+
<div class="swiper-slide">Slide 2</div>
|
|
93
|
+
<div class="swiper-slide">Slide 3</div>
|
|
67
94
|
...
|
|
68
95
|
</div>
|
|
69
96
|
</div>
|
|
70
97
|
</div>
|
|
71
98
|
```
|
|
72
99
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
## General Settings
|
|
76
|
-
|
|
77
|
-
| attributeName | description | type | default |
|
|
78
|
-
| ------------- | ---------------------------------------------------------------------------- | ------- | ------- |
|
|
79
|
-
| debugMode | when `true`, prints out debug statements to the console to help find errors. | boolean | false |
|
|
80
|
-
|
|
81
|
-
## Navigation
|
|
82
|
-
|
|
83
|
-
Navigation allows for buttons to control moving to previous or next slides. To enable navigation, add the attribute `[navigationMode="true"]`.
|
|
84
|
-
Add `[waterfall-el='next']` to an element used to advance to the next slide and `[waterfall-el='prev']` to an element used to rewind to the previous slide.
|
|
85
|
-
|
|
86
|
-
**Navigation Settings**
|
|
87
|
-
|
|
88
|
-
NYI (Not Yet Implemented)
|
|
89
|
-
|
|
90
|
-
## Autoplay
|
|
91
|
-
|
|
92
|
-
Autoplay advances the slider automatically. To enable autoplay, add the attribute `[autoplayMode="true"]`.
|
|
93
|
-
|
|
94
|
-
**Autoplay Settings (COMPLETE)**
|
|
95
|
-
|attributeName|description|type|default
|
|
96
|
-
|--|--|--|--|
|
|
97
|
-
|delay|Delay between transitions (in ms). If this parameter is not specified, auto play will be disabled|number|0|
|
|
98
|
-
|disableOnInteraction|Set to `false` and autoplay will not be disabled after user interactions (swipes), it will be restarted every time after interaction|number|0|
|
|
99
|
-
|pauseOnMouseEnter|When enabled autoplay will be paused on pointer (mouse) enter over Swiper container|boolean|false
|
|
100
|
-
|reverseDirection|Enables autoplay in reverse direction|boolean|false
|
|
101
|
-
|stopOnLastSlide|Enable this parameter and autoplay will be stopped when it reaches last slide (has no effect in loop mode)|boolean|false|
|
|
102
|
-
|waitForTransition|NOT IMPLEMENTED|-|-|
|
|
103
|
-
|
|
104
|
-
## Pagination
|
|
105
|
-
|
|
106
|
-
Pagination are a list of markers (dots, squares, numbers) that display the current slide. To enable pagination, add the attribute [paginationMode="true"] to the global settings.
|
|
107
|
-
|
|
108
|
-
Next, add `[waterfall-el="pagination"]` to the wrapper containing the pagination.
|
|
100
|
+
Waterfall Settings can be added via the Wellflow App.
|
|
109
101
|
|
|
110
|
-
|
|
102
|
+
## Attribute Naming Convention
|
|
111
103
|
|
|
112
|
-
|
|
104
|
+
If you need to add an attribute manually for some reason, each attribute is named after the SwiperJS parameter, with a `waterfall-` prefix. For example, direction is managed through attribute `[waterfall-direction]=horizontal`.
|
|
113
105
|
|
|
114
|
-
|
|
115
|
-
| ----------------- | ------------------------------------------------------------------------- | ------ | --------------------------------- |
|
|
116
|
-
| bulletActiveClass | CSS class name of currently active pagination bullet | string | 'swiper-pagination-bullet-active' |
|
|
117
|
-
| el | String with CSS selector or HTML element of the container with pagination | any | null |
|
|
106
|
+
Parameters that belong to an object (Ex. enabled parameter in the freeMode object) have the group prefixed as well - `[waterfall-free-mode-enabled]=true`.
|
|
118
107
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
type: "bullets",
|
|
122
|
-
|
|
123
|
-
dynamicBullets: false,
|
|
124
|
-
|
|
125
|
-
## Scrollbar
|
|
126
|
-
|
|
127
|
-
To add a scrollbar, first set `[scrollbar-mode='true']`.
|
|
128
|
-
|
|
129
|
-
Add `[waterfall-el='scrollbar']` to the scrollbar element (the full scrollbar) and add `[waterfall-el='scrollbar-drag']` to the draggable area of the scrollbar.
|
|
130
|
-
|
|
131
|
-
**Scrollbar Settings (COMPLETE)**
|
|
132
|
-
|
|
133
|
-
| attributeName | description | type | default |
|
|
134
|
-
| ------------------------ | ------------------------------------------------------------------------------------------------------- | ------- | ----------------------------- |
|
|
135
|
-
| dragSize | Size of scrollbar draggable element in px | number | 'auto' |
|
|
136
|
-
| draggable | Set to `true` to enable make scrollbar draggable that allows you to control slider position | boolean | false |
|
|
137
|
-
| scrollbarEnabled | Boolean property to use with breakpoints to enable/disable scrollbar on certain breakpoints | boolean | true |
|
|
138
|
-
| scrollbarHide | Hide scrollbar automatically after user interaction | boolean | false |
|
|
139
|
-
| scrollbarHorizontalClass | CSS class name set to scrollbar in horizontal Swiper | string | "swiper-scrollbar-horizontal" |
|
|
140
|
-
| scrollbarLockClass | Scrollbar element additional CSS class when it is disabled | string | "swiper-scrollbar-lock" |
|
|
141
|
-
| scrollbarDisabledClass | CSS class name added on swiper container and scrollbar element when scrollbar is disabled by breakpoint | string | "swiper-scrollbar-disabled" |
|
|
142
|
-
| snapOnRelease | Set to `true` to snap slider position to slides when you release scrollbar | boolean | false |
|
|
143
|
-
| scrollbarVerticalClass | CSS class name set to scrollbar in vertical Swiper | string | "swiper-scrollbar-vertical" |
|
|
144
|
-
|
|
145
|
-
## Contributing
|
|
146
|
-
|
|
147
|
-
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
|
|
148
|
-
|
|
149
|
-
1. Fork it!
|
|
150
|
-
2. Create your feature branch: `git checkout -b my-new-feature`
|
|
151
|
-
3. Add your changes: `git add .`
|
|
152
|
-
4. Commit your changes: `git commit -am 'Add some feature'`
|
|
153
|
-
5. Push to the branch: `git push origin my-new-feature`
|
|
154
|
-
6. Submit a pull request :sunglasses:
|
|
155
|
-
|
|
156
|
-
## Credits
|
|
157
|
-
|
|
158
|
-
TODO: Write credits
|
|
108
|
+
A full list of attributes can be found at `src/lib/attributes.ts`. Swiper Elements are managed with attributes found at `/src/lib/elements.ts`.
|
|
159
109
|
|
|
160
110
|
## Built With
|
|
161
111
|
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
-
|
|
165
|
-
- Love
|
|
166
|
-
|
|
167
|
-
## Versioning
|
|
168
|
-
|
|
169
|
-
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).
|
|
112
|
+
- [SwiperJS 11.2.10](https://github.com/nolimits4web/swiper?tab=readme-ov-file)
|
|
113
|
+
- FontAwesome
|
|
114
|
+
- React, Typescript, Vite
|
|
170
115
|
|
|
171
116
|
## Authors
|
|
172
117
|
|
|
173
|
-
- **
|
|
174
|
-
|
|
175
|
-
See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project.
|
|
118
|
+
- **Kevin Gerstner** - [kevingerstner](https://github.com/kevingerstner)
|
|
176
119
|
|
|
177
120
|
## License
|
|
178
121
|
|