@aurodesignsystem-dev/auro-slideshow 0.0.0-pr78.0 → 0.0.0-pr79.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 +49 -61
- package/custom-elements.json +643 -0
- package/demo/api.md +539 -565
- package/demo/api.min.js +3349 -1
- package/demo/index.md +76 -80
- package/demo/index.min.js +3349 -1
- package/demo/readme.md +169 -0
- package/dist/{auro-slideshow-B2IA2NHn.js → auro-slideshow-Di9AtYIy.js} +5 -5
- package/dist/index.d.ts +237 -107
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +5 -3
- package/demo/auro-slideshow.min.js +0 -3341
package/demo/api.md
CHANGED
|
@@ -11,17 +11,17 @@ with several options such as autoplay, navigation controls, and pagination dots.
|
|
|
11
11
|
| Properties | Attributes | Modifiers | Type | Default | Description |
|
|
12
12
|
| ----------- | ----------- | --------- | ------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
13
13
|
| autoplay | autoplay | | boolean | | If true, the slideshow will play automatically. |
|
|
14
|
-
| autoScroll |
|
|
14
|
+
| autoScroll | autoscroll | | boolean | | If true, the slideshow will scroll continuously. |
|
|
15
15
|
| delay | delay | | number | `7000` | Slide duration in milliseconds (Only used with `autoplay`). |
|
|
16
|
-
| fullBleed |
|
|
16
|
+
| fullBleed | fullbleed | | boolean | | If set, the slideshow will take up the width of its parent container showing previous and next slides. **Note:** a parent container must have `overflow-x: hidden` to prevent horizontal scrolling. |
|
|
17
17
|
| loop | loop | | boolean | | If true, the slideshow will loop back to the first slide after reaching the last slide. |
|
|
18
18
|
| navigation | navigation | | boolean | | If true, the slideshow will display navigation arrows for previous and next slides when the slide container is hovered. |
|
|
19
19
|
| pagination | pagination | | boolean | | If true, the slideshow will display pagination dots for each slide. If autoplay is on, the active dot will also show a progress bar. |
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
20
|
+
| playOnInit | playoninit | | boolean | | If true, the slideshow will start playing automatically on page load when `autoplay` or `autoScroll` are on. |
|
|
21
|
+
| scrollSpeed | scrollspeed | | number | `0.75` | Number of pixels auto scroll should advance per frame (Only used with `autoScroll`). |
|
|
22
|
+
| startDelay | startdelay | | number | `1000` | Delay in milliseconds before the auto scroll starts (Only used with `autoScroll`). |
|
|
23
|
+
| pauseLabel | pauselabel | | string | | Accessible label for the pause button. **Deprecated:** use `ariaLabel.slideshow.pause` instead. |
|
|
24
|
+
| playLabel | playlabel | | string | | Accessible label for the play button. **Deprecated:** use `ariaLabel.slideshow.play` instead. |
|
|
25
25
|
|
|
26
26
|
### Methods
|
|
27
27
|
|
|
@@ -55,51 +55,49 @@ with several options such as autoplay, navigation controls, and pagination dots.
|
|
|
55
55
|
## Basic
|
|
56
56
|
|
|
57
57
|
<div class="exampleWrapper">
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
58
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
59
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
60
|
+
<auro-slideshow>
|
|
61
|
+
<div style="height: 480px">
|
|
62
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
63
|
+
</div>
|
|
64
|
+
<div style="height: 480px">
|
|
65
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
66
|
+
</div>
|
|
67
|
+
<div style="height: 480px">
|
|
68
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
69
|
+
</div>
|
|
70
|
+
<div style="height: 480px">
|
|
71
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
72
|
+
</div>
|
|
73
|
+
<div style="height: 480px">
|
|
74
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
75
|
+
</div>
|
|
76
|
+
</auro-slideshow>
|
|
77
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
78
78
|
</div>
|
|
79
79
|
<auro-accordion alignRight>
|
|
80
|
-
|
|
80
|
+
<span slot="trigger">See code</span>
|
|
81
81
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
82
82
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
</auro-slideshow>
|
|
102
|
-
```
|
|
84
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow>
|
|
85
|
+
<div style="height: 480px">
|
|
86
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
87
|
+
</div>
|
|
88
|
+
<div style="height: 480px">
|
|
89
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
90
|
+
</div>
|
|
91
|
+
<div style="height: 480px">
|
|
92
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
93
|
+
</div>
|
|
94
|
+
<div style="height: 480px">
|
|
95
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
96
|
+
</div>
|
|
97
|
+
<div style="height: 480px">
|
|
98
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
99
|
+
</div>
|
|
100
|
+
</auro-slideshow></code></pre>
|
|
103
101
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
104
102
|
</auro-accordion>
|
|
105
103
|
|
|
@@ -110,51 +108,49 @@ with several options such as autoplay, navigation controls, and pagination dots.
|
|
|
110
108
|
Setting the `autoplay` attribute will render the play button so users can stop or start the slideshow.
|
|
111
109
|
|
|
112
110
|
<div class="exampleWrapper">
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
111
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/autoplay.html) -->
|
|
112
|
+
<!-- The below content is automatically added from ./../apiExamples/autoplay.html -->
|
|
113
|
+
<auro-slideshow autoplay playOnInit loop>
|
|
114
|
+
<div style="height: 480px">
|
|
115
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
116
|
+
</div>
|
|
117
|
+
<div style="height: 480px">
|
|
118
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
119
|
+
</div>
|
|
120
|
+
<div style="height: 480px">
|
|
121
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
122
|
+
</div>
|
|
123
|
+
<div style="height: 480px">
|
|
124
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
125
|
+
</div>
|
|
126
|
+
<div style="height: 480px">
|
|
127
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
128
|
+
</div>
|
|
129
|
+
</auro-slideshow>
|
|
130
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
133
131
|
</div>
|
|
134
132
|
<auro-accordion alignRight>
|
|
135
|
-
|
|
133
|
+
<span slot="trigger">See code</span>
|
|
136
134
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/autoplay.html) -->
|
|
137
135
|
<!-- The below code snippet is automatically added from ./../apiExamples/autoplay.html -->
|
|
138
136
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
</auro-slideshow>
|
|
157
|
-
```
|
|
137
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow autoplay playOnInit loop>
|
|
138
|
+
<div style="height: 480px">
|
|
139
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
140
|
+
</div>
|
|
141
|
+
<div style="height: 480px">
|
|
142
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
143
|
+
</div>
|
|
144
|
+
<div style="height: 480px">
|
|
145
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
146
|
+
</div>
|
|
147
|
+
<div style="height: 480px">
|
|
148
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
149
|
+
</div>
|
|
150
|
+
<div style="height: 480px">
|
|
151
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
152
|
+
</div>
|
|
153
|
+
</auro-slideshow></code></pre>
|
|
158
154
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
159
155
|
</auro-accordion>
|
|
160
156
|
|
|
@@ -167,51 +163,49 @@ Setting the `autoScroll` attribute will also render the play button, but unlike
|
|
|
167
163
|
`autoScroll` is disabled on mobile devices.
|
|
168
164
|
|
|
169
165
|
<div class="exampleWrapper">
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
166
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/autoscroll.html) -->
|
|
167
|
+
<!-- The below content is automatically added from ./../apiExamples/autoscroll.html -->
|
|
168
|
+
<auro-slideshow navigation autoScroll playOnInit loop>
|
|
169
|
+
<div style="height: 480px; max-width: 400px;">
|
|
170
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=1" alt="Random image 1">
|
|
171
|
+
</div>
|
|
172
|
+
<div style="height: 480px; max-width: 400px;">
|
|
173
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=2" alt="Random image 2">
|
|
174
|
+
</div>
|
|
175
|
+
<div style="height: 480px; max-width: 400px;">
|
|
176
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=3" alt="Random image 3">
|
|
177
|
+
</div>
|
|
178
|
+
<div style="height: 480px; max-width: 400px;">
|
|
179
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=4" alt="Random image 4">
|
|
180
|
+
</div>
|
|
181
|
+
<div style="height: 480px; max-width: 400px;">
|
|
182
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
183
|
+
</div>
|
|
184
|
+
</auro-slideshow>
|
|
185
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
190
186
|
</div>
|
|
191
187
|
<auro-accordion alignRight>
|
|
192
|
-
|
|
188
|
+
<span slot="trigger">See code</span>
|
|
193
189
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/autoscroll.html) -->
|
|
194
190
|
<!-- The below code snippet is automatically added from ./../apiExamples/autoscroll.html -->
|
|
195
191
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
</auro-slideshow>
|
|
214
|
-
```
|
|
192
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow navigation autoScroll playOnInit loop>
|
|
193
|
+
<div style="height: 480px; max-width: 400px;">
|
|
194
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=1" alt="Random image 1">
|
|
195
|
+
</div>
|
|
196
|
+
<div style="height: 480px; max-width: 400px;">
|
|
197
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=2" alt="Random image 2">
|
|
198
|
+
</div>
|
|
199
|
+
<div style="height: 480px; max-width: 400px;">
|
|
200
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=3" alt="Random image 3">
|
|
201
|
+
</div>
|
|
202
|
+
<div style="height: 480px; max-width: 400px;">
|
|
203
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=4" alt="Random image 4">
|
|
204
|
+
</div>
|
|
205
|
+
<div style="height: 480px; max-width: 400px;">
|
|
206
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
207
|
+
</div>
|
|
208
|
+
</auro-slideshow></code></pre>
|
|
215
209
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
216
210
|
</auro-accordion>
|
|
217
211
|
|
|
@@ -220,51 +214,49 @@ Setting the `autoScroll` attribute will also render the play button, but unlike
|
|
|
220
214
|
To set a custom slide duration on an `autoplay` slideshow, use the `delay` attribute to pass in a new value in milliseconds. The default value is 7000. This will show each slide for 7 seconds before moving to the next slide.
|
|
221
215
|
|
|
222
216
|
<div class="exampleWrapper">
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
217
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/delay.html) -->
|
|
218
|
+
<!-- The below content is automatically added from ./../apiExamples/delay.html -->
|
|
219
|
+
<auro-slideshow autoplay delay="2000">
|
|
220
|
+
<div style="height: 480px">
|
|
221
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
222
|
+
</div>
|
|
223
|
+
<div style="height: 480px">
|
|
224
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
225
|
+
</div>
|
|
226
|
+
<div style="height: 480px">
|
|
227
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
228
|
+
</div>
|
|
229
|
+
<div style="height: 480px">
|
|
230
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
231
|
+
</div>
|
|
232
|
+
<div style="height: 480px">
|
|
233
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
234
|
+
</div>
|
|
235
|
+
</auro-slideshow>
|
|
236
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
243
237
|
</div>
|
|
244
238
|
<auro-accordion alignRight>
|
|
245
|
-
|
|
239
|
+
<span slot="trigger">See code</span>
|
|
246
240
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/delay.html) -->
|
|
247
241
|
<!-- The below code snippet is automatically added from ./../apiExamples/delay.html -->
|
|
248
242
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
</auro-slideshow>
|
|
267
|
-
```
|
|
243
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow autoplay delay="2000">
|
|
244
|
+
<div style="height: 480px">
|
|
245
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
246
|
+
</div>
|
|
247
|
+
<div style="height: 480px">
|
|
248
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
249
|
+
</div>
|
|
250
|
+
<div style="height: 480px">
|
|
251
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
252
|
+
</div>
|
|
253
|
+
<div style="height: 480px">
|
|
254
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
255
|
+
</div>
|
|
256
|
+
<div style="height: 480px">
|
|
257
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
258
|
+
</div>
|
|
259
|
+
</auro-slideshow></code></pre>
|
|
268
260
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
269
261
|
</auro-accordion>
|
|
270
262
|
|
|
@@ -275,63 +267,61 @@ To enable the slideshow to show a preview of the previous and next slides, use t
|
|
|
275
267
|
**Note:** To use this properly, a parent container MUST have `overflow-x: hidden` to prevent horizontal scrolling on the page. It is not recommended to put `overflow-x: hidden` on the `<body>` element as this will prevent horizontal scrolling if fixed-width elements become wider than the page. This is only done for demo purposes.
|
|
276
268
|
|
|
277
269
|
<div class="exampleWrapper">
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
270
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/full-bleed.html) -->
|
|
271
|
+
<!-- The below content is automatically added from ./../apiExamples/full-bleed.html -->
|
|
272
|
+
<auro-slideshow fullBleed autoplay navigation loop>
|
|
273
|
+
<div style="height: 480px">
|
|
274
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
275
|
+
</div>
|
|
276
|
+
<div style="height: 480px">
|
|
277
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
278
|
+
</div>
|
|
279
|
+
<div style="height: 480px">
|
|
280
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
281
|
+
</div>
|
|
282
|
+
<div style="height: 480px">
|
|
283
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
284
|
+
</div>
|
|
285
|
+
<div style="height: 480px">
|
|
286
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
287
|
+
</div>
|
|
288
|
+
</auro-slideshow>
|
|
289
|
+
<!-- For demo purposes only -->
|
|
290
|
+
<style>
|
|
299
291
|
body {
|
|
300
292
|
overflow-x: hidden;
|
|
301
293
|
}
|
|
302
|
-
|
|
303
|
-
|
|
294
|
+
</style>
|
|
295
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
304
296
|
</div>
|
|
305
297
|
<auro-accordion alignRight>
|
|
306
|
-
|
|
298
|
+
<span slot="trigger">See code</span>
|
|
307
299
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/full-bleed.html) -->
|
|
308
300
|
<!-- The below code snippet is automatically added from ./../apiExamples/full-bleed.html -->
|
|
309
301
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
</style>
|
|
334
|
-
```
|
|
302
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow fullBleed autoplay navigation loop>
|
|
303
|
+
<div style="height: 480px">
|
|
304
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
305
|
+
</div>
|
|
306
|
+
<div style="height: 480px">
|
|
307
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
308
|
+
</div>
|
|
309
|
+
<div style="height: 480px">
|
|
310
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
311
|
+
</div>
|
|
312
|
+
<div style="height: 480px">
|
|
313
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
314
|
+
</div>
|
|
315
|
+
<div style="height: 480px">
|
|
316
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
317
|
+
</div>
|
|
318
|
+
</auro-slideshow>
|
|
319
|
+
<!-- For demo purposes only -->
|
|
320
|
+
<style>
|
|
321
|
+
body {
|
|
322
|
+
overflow-x: hidden;
|
|
323
|
+
}
|
|
324
|
+
</style></code></pre>
|
|
335
325
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
336
326
|
</auro-accordion>
|
|
337
327
|
|
|
@@ -340,51 +330,49 @@ To enable the slideshow to show a preview of the previous and next slides, use t
|
|
|
340
330
|
If the `loop` attribute is on, the slideshow will go back to the first slide when it reaches the end. If `autoplay` or `autoScroll` is on and `loop` is off, the slideshow will stop on the last slide.
|
|
341
331
|
|
|
342
332
|
<div class="exampleWrapper">
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
333
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/loop.html) -->
|
|
334
|
+
<!-- The below content is automatically added from ./../apiExamples/loop.html -->
|
|
335
|
+
<auro-slideshow pagination navigation loop>
|
|
336
|
+
<div style="height: 480px">
|
|
337
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
338
|
+
</div>
|
|
339
|
+
<div style="height: 480px">
|
|
340
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
341
|
+
</div>
|
|
342
|
+
<div style="height: 480px">
|
|
343
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
344
|
+
</div>
|
|
345
|
+
<div style="height: 480px">
|
|
346
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
347
|
+
</div>
|
|
348
|
+
<div style="height: 480px">
|
|
349
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
350
|
+
</div>
|
|
351
|
+
</auro-slideshow>
|
|
352
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
363
353
|
</div>
|
|
364
354
|
<auro-accordion alignRight>
|
|
365
|
-
|
|
355
|
+
<span slot="trigger">See code</span>
|
|
366
356
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/loop.html) -->
|
|
367
357
|
<!-- The below code snippet is automatically added from ./../apiExamples/loop.html -->
|
|
368
358
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
</auro-slideshow>
|
|
387
|
-
```
|
|
359
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow pagination navigation loop>
|
|
360
|
+
<div style="height: 480px">
|
|
361
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
362
|
+
</div>
|
|
363
|
+
<div style="height: 480px">
|
|
364
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
365
|
+
</div>
|
|
366
|
+
<div style="height: 480px">
|
|
367
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
368
|
+
</div>
|
|
369
|
+
<div style="height: 480px">
|
|
370
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
371
|
+
</div>
|
|
372
|
+
<div style="height: 480px">
|
|
373
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
374
|
+
</div>
|
|
375
|
+
</auro-slideshow></code></pre>
|
|
388
376
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
389
377
|
</auro-accordion>
|
|
390
378
|
|
|
@@ -397,51 +385,49 @@ If `loop` is off, the respective arrow control will be disabled/hidden when the
|
|
|
397
385
|
`navigation` controls are disabled on mobile devices.
|
|
398
386
|
|
|
399
387
|
<div class="exampleWrapper">
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
388
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/navigation.html) -->
|
|
389
|
+
<!-- The below content is automatically added from ./../apiExamples/navigation.html -->
|
|
390
|
+
<auro-slideshow navigation>
|
|
391
|
+
<div style="height: 480px">
|
|
392
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
393
|
+
</div>
|
|
394
|
+
<div style="height: 480px">
|
|
395
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
396
|
+
</div>
|
|
397
|
+
<div style="height: 480px">
|
|
398
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
399
|
+
</div>
|
|
400
|
+
<div style="height: 480px">
|
|
401
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
402
|
+
</div>
|
|
403
|
+
<div style="height: 480px">
|
|
404
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
405
|
+
</div>
|
|
406
|
+
</auro-slideshow>
|
|
407
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
420
408
|
</div>
|
|
421
409
|
<auro-accordion alignRight>
|
|
422
|
-
|
|
410
|
+
<span slot="trigger">See code</span>
|
|
423
411
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/navigation.html) -->
|
|
424
412
|
<!-- The below code snippet is automatically added from ./../apiExamples/navigation.html -->
|
|
425
413
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
</auro-slideshow>
|
|
444
|
-
```
|
|
414
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow navigation>
|
|
415
|
+
<div style="height: 480px">
|
|
416
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
417
|
+
</div>
|
|
418
|
+
<div style="height: 480px">
|
|
419
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
420
|
+
</div>
|
|
421
|
+
<div style="height: 480px">
|
|
422
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
423
|
+
</div>
|
|
424
|
+
<div style="height: 480px">
|
|
425
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
426
|
+
</div>
|
|
427
|
+
<div style="height: 480px">
|
|
428
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
429
|
+
</div>
|
|
430
|
+
</auro-slideshow></code></pre>
|
|
445
431
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
446
432
|
</auro-accordion>
|
|
447
433
|
|
|
@@ -450,51 +436,49 @@ If `loop` is off, the respective arrow control will be disabled/hidden when the
|
|
|
450
436
|
Setting the `pagination` attribute will render pagination dots to indicate the number of slides. The current slide dot is represented by a filled wide dot to match the look of the progress bar.
|
|
451
437
|
|
|
452
438
|
<div class="exampleWrapper">
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
<auro-slideshow pagination>
|
|
456
|
-
<div style="height: 480px">
|
|
457
|
-
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
458
|
-
</div>
|
|
459
|
-
<div style="height: 480px">
|
|
460
|
-
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
461
|
-
</div>
|
|
462
|
-
<div style="height: 480px">
|
|
463
|
-
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
464
|
-
</div>
|
|
465
|
-
<div style="height: 480px">
|
|
466
|
-
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
467
|
-
</div>
|
|
468
|
-
<div style="height: 480px">
|
|
469
|
-
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
470
|
-
</div>
|
|
471
|
-
</auro-slideshow>
|
|
472
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
473
|
-
</div>
|
|
474
|
-
<auro-accordion alignRight>
|
|
475
|
-
<span slot="trigger">See code</span>
|
|
476
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/pagination.html) -->
|
|
477
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/pagination.html -->
|
|
478
|
-
|
|
479
|
-
```html
|
|
439
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/pagination.html) -->
|
|
440
|
+
<!-- The below content is automatically added from ./../apiExamples/pagination.html -->
|
|
480
441
|
<auro-slideshow pagination>
|
|
481
442
|
<div style="height: 480px">
|
|
482
|
-
|
|
443
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
483
444
|
</div>
|
|
484
445
|
<div style="height: 480px">
|
|
485
|
-
|
|
446
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
486
447
|
</div>
|
|
487
448
|
<div style="height: 480px">
|
|
488
|
-
|
|
449
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
489
450
|
</div>
|
|
490
451
|
<div style="height: 480px">
|
|
491
|
-
|
|
452
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
492
453
|
</div>
|
|
493
454
|
<div style="height: 480px">
|
|
494
|
-
|
|
455
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
456
|
+
</div>
|
|
457
|
+
</auro-slideshow>
|
|
458
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
495
459
|
</div>
|
|
496
|
-
|
|
497
|
-
|
|
460
|
+
<auro-accordion alignRight>
|
|
461
|
+
<span slot="trigger">See code</span>
|
|
462
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/pagination.html) -->
|
|
463
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/pagination.html -->
|
|
464
|
+
|
|
465
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow pagination>
|
|
466
|
+
<div style="height: 480px">
|
|
467
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
468
|
+
</div>
|
|
469
|
+
<div style="height: 480px">
|
|
470
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
471
|
+
</div>
|
|
472
|
+
<div style="height: 480px">
|
|
473
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
474
|
+
</div>
|
|
475
|
+
<div style="height: 480px">
|
|
476
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
477
|
+
</div>
|
|
478
|
+
<div style="height: 480px">
|
|
479
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
480
|
+
</div>
|
|
481
|
+
</auro-slideshow></code></pre>
|
|
498
482
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
499
483
|
</auro-accordion>
|
|
500
484
|
|
|
@@ -503,51 +487,49 @@ Setting the `pagination` attribute will render pagination dots to indicate the n
|
|
|
503
487
|
Setting the `playOnInit` attribute will start playing the slideshow when the page loads if either `autoplay` or `autoScroll` are enabled. Otherwise, the slideshow will not start playing until the user clicks the play button or the `play()` method is called.
|
|
504
488
|
|
|
505
489
|
<div class="exampleWrapper">
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
490
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/playoninit.html) -->
|
|
491
|
+
<!-- The below content is automatically added from ./../apiExamples/playoninit.html -->
|
|
492
|
+
<auro-slideshow autoScroll playOnInit loop>
|
|
493
|
+
<div style="height: 480px; max-width: 400px;">
|
|
494
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=1" alt="Random image 1">
|
|
495
|
+
</div>
|
|
496
|
+
<div style="height: 480px; max-width: 400px;">
|
|
497
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=2" alt="Random image 2">
|
|
498
|
+
</div>
|
|
499
|
+
<div style="height: 480px; max-width: 400px;">
|
|
500
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=3" alt="Random image 3">
|
|
501
|
+
</div>
|
|
502
|
+
<div style="height: 480px; max-width: 400px;">
|
|
503
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=4" alt="Random image 4">
|
|
504
|
+
</div>
|
|
505
|
+
<div style="height: 480px; max-width: 400px;">
|
|
506
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
507
|
+
</div>
|
|
508
|
+
</auro-slideshow>
|
|
509
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
526
510
|
</div>
|
|
527
511
|
<auro-accordion alignRight>
|
|
528
|
-
|
|
512
|
+
<span slot="trigger">See code</span>
|
|
529
513
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/playoninit.html) -->
|
|
530
514
|
<!-- The below code snippet is automatically added from ./../apiExamples/playoninit.html -->
|
|
531
515
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
</auro-slideshow>
|
|
550
|
-
```
|
|
516
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow autoScroll playOnInit loop>
|
|
517
|
+
<div style="height: 480px; max-width: 400px;">
|
|
518
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=1" alt="Random image 1">
|
|
519
|
+
</div>
|
|
520
|
+
<div style="height: 480px; max-width: 400px;">
|
|
521
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=2" alt="Random image 2">
|
|
522
|
+
</div>
|
|
523
|
+
<div style="height: 480px; max-width: 400px;">
|
|
524
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=3" alt="Random image 3">
|
|
525
|
+
</div>
|
|
526
|
+
<div style="height: 480px; max-width: 400px;">
|
|
527
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=4" alt="Random image 4">
|
|
528
|
+
</div>
|
|
529
|
+
<div style="height: 480px; max-width: 400px;">
|
|
530
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
531
|
+
</div>
|
|
532
|
+
</auro-slideshow></code></pre>
|
|
551
533
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
552
534
|
</auro-accordion>
|
|
553
535
|
|
|
@@ -556,51 +538,49 @@ Setting the `playOnInit` attribute will start playing the slideshow when the pag
|
|
|
556
538
|
To set a custom speed on an `autoScroll` slideshow, use the `scrollSpeed` attribute to pass in a new value in pixels per frame. The default value is 0.75. To make the slideshow scroll faster, use a higher number. The value does not need to be whole number.
|
|
557
539
|
|
|
558
540
|
<div class="exampleWrapper">
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
541
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/scrollspeed.html) -->
|
|
542
|
+
<!-- The below content is automatically added from ./../apiExamples/scrollspeed.html -->
|
|
543
|
+
<auro-slideshow navigation autoScroll scrollSpeed="2.88" loop>
|
|
544
|
+
<div style="height: 480px; max-width: 400px;">
|
|
545
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=1" alt="Random image 1">
|
|
546
|
+
</div>
|
|
547
|
+
<div style="height: 480px; max-width: 400px;">
|
|
548
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=2" alt="Random image 2">
|
|
549
|
+
</div>
|
|
550
|
+
<div style="height: 480px; max-width: 400px;">
|
|
551
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=3" alt="Random image 3">
|
|
552
|
+
</div>
|
|
553
|
+
<div style="height: 480px; max-width: 400px;">
|
|
554
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=4" alt="Random image 4">
|
|
555
|
+
</div>
|
|
556
|
+
<div style="height: 480px; max-width: 400px;">
|
|
557
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
558
|
+
</div>
|
|
559
|
+
</auro-slideshow>
|
|
560
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
579
561
|
</div>
|
|
580
562
|
<auro-accordion alignRight>
|
|
581
|
-
|
|
563
|
+
<span slot="trigger">See code</span>
|
|
582
564
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/scrollspeed.html) -->
|
|
583
565
|
<!-- The below code snippet is automatically added from ./../apiExamples/scrollspeed.html -->
|
|
584
566
|
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
</auro-slideshow>
|
|
603
|
-
```
|
|
567
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow navigation autoScroll scrollSpeed="2.88" loop>
|
|
568
|
+
<div style="height: 480px; max-width: 400px;">
|
|
569
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=1" alt="Random image 1">
|
|
570
|
+
</div>
|
|
571
|
+
<div style="height: 480px; max-width: 400px;">
|
|
572
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=2" alt="Random image 2">
|
|
573
|
+
</div>
|
|
574
|
+
<div style="height: 480px; max-width: 400px;">
|
|
575
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=3" alt="Random image 3">
|
|
576
|
+
</div>
|
|
577
|
+
<div style="height: 480px; max-width: 400px;">
|
|
578
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=4" alt="Random image 4">
|
|
579
|
+
</div>
|
|
580
|
+
<div style="height: 480px; max-width: 400px;">
|
|
581
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
582
|
+
</div>
|
|
583
|
+
</auro-slideshow></code></pre>
|
|
604
584
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
605
585
|
</auro-accordion>
|
|
606
586
|
|
|
@@ -609,51 +589,49 @@ To set a custom speed on an `autoScroll` slideshow, use the `scrollSpeed` attrib
|
|
|
609
589
|
To set a custom delay before the `autoScroll` restarts, use the `startDelay` attribute to pass in a new value in milliseconds. The default value is 1000. This will cause the slideshow to wait 1 second before it resumes autoscrolling.
|
|
610
590
|
|
|
611
591
|
<div class="exampleWrapper">
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
592
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/startdelay.html) -->
|
|
593
|
+
<!-- The below content is automatically added from ./../apiExamples/startdelay.html -->
|
|
594
|
+
<auro-slideshow navigation autoScroll startDelay="200" loop>
|
|
595
|
+
<div style="height: 480px; max-width: 400px;">
|
|
596
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=1" alt="Random image 1">
|
|
597
|
+
</div>
|
|
598
|
+
<div style="height: 480px; max-width: 400px;">
|
|
599
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=2" alt="Random image 2">
|
|
600
|
+
</div>
|
|
601
|
+
<div style="height: 480px; max-width: 400px;">
|
|
602
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=3" alt="Random image 3">
|
|
603
|
+
</div>
|
|
604
|
+
<div style="height: 480px; max-width: 400px;">
|
|
605
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=4" alt="Random image 4">
|
|
606
|
+
</div>
|
|
607
|
+
<div style="height: 480px; max-width: 400px;">
|
|
608
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
609
|
+
</div>
|
|
610
|
+
</auro-slideshow>
|
|
611
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
632
612
|
</div>
|
|
633
613
|
<auro-accordion alignRight>
|
|
634
|
-
|
|
614
|
+
<span slot="trigger">See code</span>
|
|
635
615
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/startdelay.html) -->
|
|
636
616
|
<!-- The below code snippet is automatically added from ./../apiExamples/startdelay.html -->
|
|
637
617
|
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
</auro-slideshow>
|
|
656
|
-
```
|
|
618
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow navigation autoScroll startDelay="200" loop>
|
|
619
|
+
<div style="height: 480px; max-width: 400px;">
|
|
620
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=1" alt="Random image 1">
|
|
621
|
+
</div>
|
|
622
|
+
<div style="height: 480px; max-width: 400px;">
|
|
623
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=2" alt="Random image 2">
|
|
624
|
+
</div>
|
|
625
|
+
<div style="height: 480px; max-width: 400px;">
|
|
626
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=3" alt="Random image 3">
|
|
627
|
+
</div>
|
|
628
|
+
<div style="height: 480px; max-width: 400px;">
|
|
629
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=4" alt="Random image 4">
|
|
630
|
+
</div>
|
|
631
|
+
<div style="height: 480px; max-width: 400px;">
|
|
632
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
633
|
+
</div>
|
|
634
|
+
</auro-slideshow></code></pre>
|
|
657
635
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
658
636
|
</auro-accordion>
|
|
659
637
|
|
|
@@ -668,59 +646,57 @@ To customize the aria-labels for the slideshow controls, use the following slots
|
|
|
668
646
|
- `ariaLabel.slideshow.pause` - Pause slideshow button
|
|
669
647
|
|
|
670
648
|
<div class="exampleWrapper">
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
649
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/slots_aria-label.html) -->
|
|
650
|
+
<!-- The below content is automatically added from ./../apiExamples/slots_aria-label.html -->
|
|
651
|
+
<auro-slideshow autoplay navigation>
|
|
652
|
+
<span slot="ariaLabel.scroll.left">Custom label for previous slide</span>
|
|
653
|
+
<span slot="ariaLabel.scroll.right">Custom label for next slide</span>
|
|
654
|
+
<span slot="ariaLabel.slideshow.play">Custom label for play slideshow</span>
|
|
655
|
+
<span slot="ariaLabel.slideshow.pause">Custom label for pause slideshow</span>
|
|
656
|
+
<div style="height: 480px">
|
|
657
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
658
|
+
</div>
|
|
659
|
+
<div style="height: 480px">
|
|
660
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
661
|
+
</div>
|
|
662
|
+
<div style="height: 480px">
|
|
663
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
664
|
+
</div>
|
|
665
|
+
<div style="height: 480px">
|
|
666
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
667
|
+
</div>
|
|
668
|
+
<div style="height: 480px">
|
|
669
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
670
|
+
</div>
|
|
671
|
+
</auro-slideshow>
|
|
672
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
695
673
|
</div>
|
|
696
674
|
<auro-accordion alignRight>
|
|
697
|
-
|
|
675
|
+
<span slot="trigger">See code</span>
|
|
698
676
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/slots_aria-label.html) -->
|
|
699
677
|
<!-- The below code snippet is automatically added from ./../apiExamples/slots_aria-label.html -->
|
|
700
678
|
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
</auro-slideshow>
|
|
723
|
-
```
|
|
679
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow autoplay navigation>
|
|
680
|
+
<span slot="ariaLabel.scroll.left">Custom label for previous slide</span>
|
|
681
|
+
<span slot="ariaLabel.scroll.right">Custom label for next slide</span>
|
|
682
|
+
<span slot="ariaLabel.slideshow.play">Custom label for play slideshow</span>
|
|
683
|
+
<span slot="ariaLabel.slideshow.pause">Custom label for pause slideshow</span>
|
|
684
|
+
<div style="height: 480px">
|
|
685
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
686
|
+
</div>
|
|
687
|
+
<div style="height: 480px">
|
|
688
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
689
|
+
</div>
|
|
690
|
+
<div style="height: 480px">
|
|
691
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
692
|
+
</div>
|
|
693
|
+
<div style="height: 480px">
|
|
694
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
695
|
+
</div>
|
|
696
|
+
<div style="height: 480px">
|
|
697
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
698
|
+
</div>
|
|
699
|
+
</auro-slideshow></code></pre>
|
|
724
700
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
725
701
|
</auro-accordion>
|
|
726
702
|
|
|
@@ -729,80 +705,78 @@ To customize the aria-labels for the slideshow controls, use the following slots
|
|
|
729
705
|
### Full-Bleed + AutoScroll Preview
|
|
730
706
|
|
|
731
707
|
<div class="exampleWrapper">
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
708
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/full-bleed-autoscroll.html) -->
|
|
709
|
+
<!-- The below content is automatically added from ./../apiExamples/full-bleed-autoscroll.html -->
|
|
710
|
+
<auro-slideshow fullBleed navigation autoScroll playOnInit loop>
|
|
711
|
+
<div style="height: 480px; max-width: 400px;">
|
|
712
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=1" alt="Random image 1">
|
|
713
|
+
</div>
|
|
714
|
+
<div style="height: 480px; max-width: 400px;">
|
|
715
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=2" alt="Random image 2">
|
|
716
|
+
</div>
|
|
717
|
+
<div style="height: 480px; max-width: 400px;">
|
|
718
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=3" alt="Random image 3">
|
|
719
|
+
</div>
|
|
720
|
+
<div style="height: 480px; max-width: 400px;">
|
|
721
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=4" alt="Random image 4">
|
|
722
|
+
</div>
|
|
723
|
+
<div style="height: 480px; max-width: 400px;">
|
|
724
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
725
|
+
</div>
|
|
726
|
+
<div style="height: 480px; max-width: 400px;">
|
|
727
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=6" alt="Random image 6">
|
|
728
|
+
</div>
|
|
729
|
+
<div style="height: 480px; max-width: 400px;">
|
|
730
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=7" alt="Random image 7">
|
|
731
|
+
</div>
|
|
732
|
+
<div style="height: 480px; max-width: 400px;">
|
|
733
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=8" alt="Random image 8">
|
|
734
|
+
</div>
|
|
735
|
+
</auro-slideshow>
|
|
736
|
+
<!-- For demo purposes only -->
|
|
737
|
+
<style>
|
|
762
738
|
body {
|
|
763
739
|
overflow-x: hidden;
|
|
764
740
|
}
|
|
765
|
-
|
|
766
|
-
|
|
741
|
+
</style>
|
|
742
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
767
743
|
</div>
|
|
768
744
|
<auro-accordion alignRight>
|
|
769
|
-
|
|
745
|
+
<span slot="trigger">See code</span>
|
|
770
746
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/full-bleed-autoscroll.html) -->
|
|
771
747
|
<!-- The below code snippet is automatically added from ./../apiExamples/full-bleed-autoscroll.html -->
|
|
772
748
|
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
</style>
|
|
806
|
-
```
|
|
749
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow fullBleed navigation autoScroll playOnInit loop>
|
|
750
|
+
<div style="height: 480px; max-width: 400px;">
|
|
751
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=1" alt="Random image 1">
|
|
752
|
+
</div>
|
|
753
|
+
<div style="height: 480px; max-width: 400px;">
|
|
754
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=2" alt="Random image 2">
|
|
755
|
+
</div>
|
|
756
|
+
<div style="height: 480px; max-width: 400px;">
|
|
757
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=3" alt="Random image 3">
|
|
758
|
+
</div>
|
|
759
|
+
<div style="height: 480px; max-width: 400px;">
|
|
760
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=4" alt="Random image 4">
|
|
761
|
+
</div>
|
|
762
|
+
<div style="height: 480px; max-width: 400px;">
|
|
763
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
764
|
+
</div>
|
|
765
|
+
<div style="height: 480px; max-width: 400px;">
|
|
766
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=6" alt="Random image 6">
|
|
767
|
+
</div>
|
|
768
|
+
<div style="height: 480px; max-width: 400px;">
|
|
769
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=7" alt="Random image 7">
|
|
770
|
+
</div>
|
|
771
|
+
<div style="height: 480px; max-width: 400px;">
|
|
772
|
+
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=8" alt="Random image 8">
|
|
773
|
+
</div>
|
|
774
|
+
</auro-slideshow>
|
|
775
|
+
<!-- For demo purposes only -->
|
|
776
|
+
<style>
|
|
777
|
+
body {
|
|
778
|
+
overflow-x: hidden;
|
|
779
|
+
}
|
|
780
|
+
</style></code></pre>
|
|
807
781
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
808
782
|
</auro-accordion>
|